Re: Executable entry point
Re: Executable entry point
- Subject: Re: Executable entry point
- From: Jonas Maebe <email@hidden>
- Date: Sun, 18 Mar 2007 13:30:44 +0100
On 18 Mar 2007, at 12:02, Filipe Cabecinhas wrote:
As far as I could see (by going through the source of Darwin, when
I want to call a system call directly (I can't link the output of
my compiler with the libc, I have to link it with my run-time
library) I should do the following:
Note that in this case the programs you create are only guaranteed to
run on the exact system revision you are compiling on, because the
syscall interface on Mac OS X is undefined and can change at will
(unlike libc, which is defined).
In general, it's pretty easy to build your run time library on top of
libc rather than on top of system calls (we also did it for Mac OS X,
while our Linux version uses system calls because there system calls
are pretty much guaranteed to be backwards compatible forever, while
glibc breaks backwards binary compatibility every couple of years).
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden