Page 1 of 1

Leading underscore

Posted: Sun Dec 29, 2002 5:42 pm
by pini
when writing an asm function that should only be called by a C program, does I need a leading underscore before its name ?

Re:Leading underscore

Posted: Sun Dec 29, 2002 5:46 pm
by jrfritz
Depends on the object format you use.

I use linux ELF...where you don't need a "_".

If you use DGJPP...it uses COFF and that needs a "_".

Re:Leading underscore

Posted: Mon Dec 30, 2002 5:11 am
by pini
Ok, I am using ELF too, this will simplify my code !

Re:Leading underscore

Posted: Mon Dec 30, 2002 6:16 am
by Pype.Clicker
-fno-leading-underscore could save your life :)

Re:Leading underscore

Posted: Mon Dec 30, 2002 1:03 pm
by pini
Okay, that's exactly what I needed. Thanx ;D