Date: Mon, 25 Nov 2002 14:11:16 -0500 From: "Charles Swiger" <cswiger@mac.com> To: <freebsd-stable@FreeBSD.ORG> Subject: Re: running many programs on multiprocessor system Message-ID: <004b01c294b6$6e371ea0$0301a8c0@prime> References: <3DE149C7.2030607@math.missouri.edu> <3DE14D21.8070905@math.missouri.edu> <3DE248AC.8C54C273@softweyr.com> <3DE2662D.3070404@math.missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Montgomery-Smith wrote: [ ... ] > In the mean time, can anyone tell me or point to me documentation > telling me any kind of rules that assembler functions called from C > programs have to obey? (And maybe vice versa.) Whether a given chunk of code was orignally written in assembler or in C doesn't matter, since C programs usually get translated into assembly by the compiler. Regardless of the origin, the code needs to follow the calling conventions of the platform, as well as the interfaces defined by the C header files; see a K&R, or "man elf" and the references from there: Hewlett Packard, Elf-64 Object File Format. Santa Cruz Operation, System V Application Binary Interface. Unix System Laboratories, "Object Files", Executable and Linking Format (ELF). In practice, compiling a small program in C and taking a look at the corresponding assembly via "cc -S" will probably be fairly helpful as well. -Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004b01c294b6$6e371ea0$0301a8c0>