flat assembler
Message board for the users of flat assembler.
Index
> Main > How to export a symbol in FASM? |
Author |
|
Tomasz Grysztar 11 Jan 2023, 21:01
There has been a recent thread about this: https://board.flatassembler.net/topic.php?t=22496
In short, you need to use object output (COFF or ELF), "public" directive to export symbols, and "extrn" directive to import symbols. The old FAQ also had a macro that emulated "global": Code: macro global [symbol] { local isextrn,isglobal if defined symbol & ~ defined isextrn public symbol else if used symbol & defined isglobal extrn symbol isextrn = 1 end if isglobal = 1 } |
|||
11 Jan 2023, 21:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.