Date: Thu, 21 Nov 2002 17:54:47 +0100 From: dslb@tiscali.dk To: hackers@freebsd.org Subject: Assembly and ELF Message-ID: <3D9C05F40000B2D2@cpfe6.be.tisc.dk>
next in thread | raw e-mail | index | archive | help
Hi FreeBSD lovers I can't remember if I'm on the list, so please CC to me. I used to program in C++ and assembly under windows, but now I only run FreeBSD (4.7). I have to get used to not playing with BIOS interrupts and direct hardwar= e accessing, but I'll live. My questions are: 1. Can you guide my to some good info on asm programming under FreeBSD (I= have read www.int80h.org/bsdasm) 2. /usr/src/sys/kern/syscalls.master gives argument passing info, but it doesn't tell you about the function returns. I have read that for most pa= rts it is in EAX, but I wan't to be 100% where the return value is. Btw why do we need to pad arguments? 3. Why do BSD use the stack and not the registres to pass arguments to fu= nctions? I bet there is a really good reason, but isn't the Linux/Windows way bett= er performancewise? 4. I would really like to know more (everything) about the ELF file forma= t (this is the primary format in FreeBSD right?) So can you recommend some good links? I would like to know things like the use of .bss (the heap ri= ght?), .text, .data and also about the linker (ld). 5. When you run int 80h that happens? Is the functions staticly in the ke= rnel and thereby in RAM or will the kernel use a .so file? If so, how does it know which file to use? (I am trying to see the whole picture, how things= fit together) I hope can/will answer these questions :-) br socketd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D9C05F40000B2D2>