Sponsored Content
Top Forums Programming Need more info on internals of c compilers Post 302361332 by MrUser on Tuesday 13th of October 2009 03:14:50 AM
Old 10-13-2009
Need more info on internals of c compilers

Hello Gurus,

i am ok with the concepts of c language but i would like to know
more about the internals of c with respect to the compilers

what happens when we say
gcc filename.c

the a.out will get created(what actaully compiler does to the code inaddition to generating object code)

gcc -c filename.c ( )

creates only .o files we need to link them to get a.out(i need extra)

gcc -o fn filename.c ( )

request you to provide me the more info on following
symbol table( how the linker actually uses this info),virtual address(what is this why its needed), physical address(what is this why its needed),linker,loading,locating.
expecting the above with repect to the gcc compilers

thanks in advance
either links or some descrption i am expecting
 

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

MS DOS Basic to .EXE compilers?

Hi, Does anyone know any compilers that will do Microsoft Basic files and make them .exe files. Thanks :D (1 Reply)
Discussion started by: jacx2
1 Replies

2. UNIX for Dummies Questions & Answers

Finding out available C++ compilers on my system

How can I find out what C++ compilers are available on my system? Thanks in advance (7 Replies)
Discussion started by: HelpMeIAmLost
7 Replies

3. AIX

Error: could not find any of these C compilers

Hi, While trying to configure Apache Web Server on P630 Server i am getting the below message "Creating Makefile in src + configured for AIX 5.2 platform Error: could not find any of these C compilers anywhere in your PATH: gcc cc acc c89 Configure terminated" when i did a "lslpp -l... (2 Replies)
Discussion started by: cherryven
2 Replies

4. Programming

Help with C compilers

i have windows 7 64bit, and i want to program C in it, i have the eclipse for C, but it wont work because i have no C compilers , where do i get a C compiler, so eclipse will work? I usually transfer to a unix server and use a command gcc -Wall -g -o ___ ___ where can i get the gcc C... (5 Replies)
Discussion started by: omega666
5 Replies

5. Homework & Coursework Questions

Phases of Compilers

Hello I have a questions and m stuck on it. Theoritcally the phases of compiler. 1. Lexical analyis -- genrates tokes NOW MY QUESTION IS: where i can see these token if i make a simple C program. Please guys tell me step to see it. and other phases too. your help will be appreciated... (1 Reply)
Discussion started by: aditya08
1 Replies

6. What is on Your Mind?

How to switch from SVR4/BSD internals to Linux internals?

Hello, Long-time Unix hacker here - I've worked on four variants of the kernel prior to the introduction of Linux. In my spare time, I've written Linux (Ubuntu) device drivers, kernel modules, cross-compiled, and built the kernel. I'd like to do Linux internals/device drivers as a day job,... (1 Reply)
Discussion started by: OriginalVersion
1 Replies

7. AIX

C Compilers Available on AIX

Hi Guys, I want to know what are the different C compilers are available on AIX like cc, gcc etc. Appreciate your help. Regards, Srikanth:) (1 Reply)
Discussion started by: ysrikanth
1 Replies

8. Programming

Makefile for two compilers

I have g++-4.6 and g++-4.8.2 installed on my system and want to build a suite of programs using each one. I am thinking putting the option on what to build by having a different target, one for g++-4.6 and another target for g++-4.8.2. What do you think? (1 Reply)
Discussion started by: kristinu
1 Replies

9. Solaris

How to combine c11 and c99 compilers?

I have a SPARC server with Solaris SPARC 10 OS installed I am trying to compile source code from VLC media player and PHP 7 tarballs However the stumbling block I encounter is that when I type in ./configure into my PUTTY terminal the GCC compiler tells me halfway through configuration that... (3 Replies)
Discussion started by: alphatron150
3 Replies
CDEFS(3)						   BSD Library Functions Manual 						  CDEFS(3)

NAME
cdefs -- common definitions and macros SYNOPSIS
#include <sys/cdefs.h> DESCRIPTION
The <sys/cdefs.h> header includes some common definitions and macros typical to the C language conventions of NetBSD. Among these are: o Certain C language properties and definitions that are versioned according to the support in compilers. Examples include the __func__ keyword and the restrict type qualifier from C99. o Macros and definitions specific to compilers, preprocessors, and linkers; see __CONCAT(3), __UNCONST(3), __insn_barrier(3), and attribute(3). o Utility macros provided for convenience; see __arraycount(3) and bits(3). The header also contains the __RCSID() and __KERNEL_RCSID() macros used for version control system (VCS) identifiers. Thus, all NetBSD source code files typically include <sys/cdefs.h>, included as the first thing right after any possible copyright texts; /*- * Copyright (c) 1984 John Doe * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted. */ #include <sys/cdefs.h> __RCSID("$NetBSD: cdefs.3,v 1.3 2011/04/08 07:55:04 jruoho Exp $"); It is possible to identify the RCS keyword strings by using ident(1). SEE ALSO
ident(1), param(3), stddef(3), types(3), c(7) HISTORY
The <sys/cdefs.h> header was originally imported from 386BSD. BSD
April 8, 2011 BSD
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy