Re: Linking libraries?



Julienne Walker wrote:
Frank Kotler wrote:

Julienne Walker wrote:

...

global _main
extern _getenv

_main:

I still think we're going to want to lose the underscores for Linux...
Well, Solar's got it working...


Yea, underscores are iffy. It's probably better to never use them and
take advantage of the --prefix switch on systems that need them.

That's the way I'd do it. Still another option... Nasm has some "built in macros" - some global, some specific to output format. "-f elf" includes this macro to "un-underscore" names. Useful for porting already written code that uses 'em...

"%macro __NASM_CDecl__ 1",
"%define $_%1 $%1",
"%endmacro",

So many choices...

Best,
Frank
.



Relevant Pages

  • Re: Function invocation location
    ... You use macros to do what? ... Avoid identifiers with leading underscores. ... The most likely reason you'd want this information is for debugging. ... a good source-level debugger should give you that ...
    (comp.lang.c)
  • Re: Removing full stops and extra spaces at the end of cells
    ... >> macros but worked out how to instal it into a module and then ran it ... I tried to use edit/replace because I do need to replace every ... I'm thinking that maybe the underscores that are in the file are some ... were the ones that originally turned into underscores from hyphens ...
    (microsoft.public.mac.office.excel)
  • Re: Removing full stops and extra spaces at the end of cells
    ... >> macros but worked out how to instal it into a module and then ran it ... I tried to use edit/replace because I do need to replace every ... I'm thinking that maybe the underscores that are in the file are some ... were the ones that originally turned into underscores from hyphens ...
    (microsoft.public.mac.office.excel)