Re: Compiling -- gcc -- Lex & Yacc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 22, 2008 at 04:16:14PM -0430, Patrick O'Callaghan wrote:
......
> 
> > I have gone through 'info gcc' but that does not seem to lead to the
> > answer of my specific question.  I have read as much as I could
> > regarding 'make'.  That didn't seem to have an answer either.  Maybe I
> > missed it!
> 
> 'Make' just calls other programs according to a recipe, some of the
> rules for which are built-in. It has nothing specific to do with the
> actual mechanics of compiling.

make has its own verbose flags.
A Makefile can very much change how a compiler behaves!

......
> 
> "gcc -v prog.c" will show you what's happening in excruciating detail.
> 
> Looking at the source code for 'gcc' is an illuminating experience. Note
> that it's a very large complex program but patience is rewarded.

In some cases "strace" might tell you even more.
Both what it looks for and does not fine as well
as what it does.

Since gcc and friends are 'drivers' you need to follow
parent to child to chile and back....  Compare and contrast...

	$ strace -f -F -o /tmp/tracingGCC  make
	$ strace -f -F -o /tmp/tracingGCC  gcc hello.c
	$ strace -f -F -o /tmp/tracingGCC  gcc -O0 hello.c
	$ strace -f -F -o /tmp/tracingGCC  gcc -no-integrated-cpp  hello.c
	etc...



-- 
	T o m  M i t c h e l l 
	Looking for a place to hang my hat :-(

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux