flat assembler
Message board for the users of flat assembler.
![]() |
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 } |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.