Leading underscore

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
pini

Leading underscore

Post 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 ?
jrfritz

Re:Leading underscore

Post 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 "_".
pini

Re:Leading underscore

Post by pini »

Ok, I am using ELF too, this will simplify my code !
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Leading underscore

Post by Pype.Clicker »

-fno-leading-underscore could save your life :)
pini

Re:Leading underscore

Post by pini »

Okay, that's exactly what I needed. Thanx ;D
Post Reply