GNU C Compiler


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users GNU C Compiler
# 1  
Old 05-10-2013
Hammer & Screwdriver GNU C Compiler

Hi Frds,

I am new to unix forums. With lot of hope, i'm posting this thread. I want to understand GCC functionality(from commandline parsing to Assembly code generatio). i have relavant source code with me. But i felt little bit difficulty in understanding / reading each line of code. Is it possible to debug the compiler while compiling a C source.

Last edited by Scott; 05-10-2013 at 03:47 PM.. Reason: Do not ask for "help ASAP"
# 2  
Old 05-10-2013
Reading the source code of a C compiler may not be the best way to understand what they actually do... especially a big compiler like gcc which is broken up into language-independent modules.
# 3  
Old 05-10-2013
As a aside - GCC now longer means GNU C compiler; it now stands for GNU Compiler Collection.
# 4  
Old 05-11-2013
So what would be the best method ? Is there best way to debug the GCC cc1 compiler.
# 5  
Old 05-16-2013
Depends what you want to do. 'debug the gcc compiler' is more of a method than a goal.
# 6  
Old 05-16-2013
Rather than trying to debug gcc while compiling a C program, you would be better served by first reading a book on modern compiler design. There are a number of good books on the subject. I would recommend you start with Compilers: Principles, Techniques, and Tools (2nd Ed) by Aho et al.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I need the compiler !!! help me

I have the code .section .data format_string: .asciz "Tong la '%d'\n" n: .int 6 .section .text .globl _start _start: movl $0,%esi movl n,%eax movl $0,%ecx loop1: cmp %eax,%ecx je print add %eax,%esi dec %eax jmp loop1 print: movl $format_string, %edi movl $0, %eax (1 Reply)
Discussion started by: toantk_55
1 Replies

2. Solaris

Cannot run installed GNU compiler, Solaris 10

Am new to Solaris OS and need to install the GNU cpp compiler. Followed the instructions from Sunfreeware for installing the gcc compiler and it looks as if it correctly installed but i cannot run it from the command window. # cd /usr/local/bin # ls c++ ... (2 Replies)
Discussion started by: brb
2 Replies

3. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies

4. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

5. Solaris

Help needed on non GNU compiler

Hi All, I would require to retrieve the complete list of system include paths for a non gnu compiler(For a GNU compiler like gcc this can be retrieved by using a -v option). Please let me know if you are aware of any method to retrieve this for a non GNU compiler(eg: Sun Studio 11 tool... (1 Reply)
Discussion started by: Pankajakshan
1 Replies

6. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

7. Solaris

C compiler

Hello Everyone!!! Can i use the C shell to compile a C program ? how ? please teach me how to compile ? Thanks!!!! Giancarlo D. Jabon (1 Reply)
Discussion started by: giancarlodjabon
1 Replies

8. Programming

C compiler

I'm new to C but eager to get started. I purchasewd beginning C by Ivor Horton and realise that I need a C compiler. I looking for the most appropriate and economical way to obtain this, any suggestions would be greatly appreciated. (5 Replies)
Discussion started by: ferret
5 Replies

9. Windows & DOS: Issues & Discussions

Compiler

Anyone know of a gcc (maybe there is a Windows version of gcc)equivalent compiler that I can download (for free) and run on a Windows2000 machine? Am new to C and want to keep writing code while I am away on vacation - bringin my laptop . thanks in advance (4 Replies)
Discussion started by: google
4 Replies
Login or Register to Ask a Question