HAndling Syscalls

Yves Rutschle y.rutschle@indigovision.com
Wed Jul 10 11:22:00 GMT 2002


On Wed, Jul 10, 2002 at 10:18:52AM -0700, savithri venkatachalapathy wrote:
> And I have some doubts about how compilers handle syscalls.

Usually system calls would not actually depend on the
compiler. They are rather implemented by the C library.
Hence, when your program calls printf(), that enters the
C library which eventually will perform a write system call.

(In fact, you may even have a system without an operating
system, in which case you wouldn't get any system call at
all: printf() would call into the library which would
eventually call some hardware-dependent function that would
send stuff to the UART directly.)

The details will depend on the library you use...

/Y


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list