flat assembler
Message board for the users of flat assembler.
Index
> Main > Can I include library code without using third-party linker? |
Author |
|
Jin X 04 Apr 2018, 09:23
Hello!
Can I include library code without using third-party linker? |
|||
04 Apr 2018, 09:23 |
|
Jin X 04 Apr 2018, 10:08
revolution, file??? I'm saying about library, not raw data.
|
|||
04 Apr 2018, 10:08 |
|
DimonSoft 04 Apr 2018, 10:13
Jin X wrote: revolution, file??? I'm saying about library, not raw data. revolution wrote: But you would have to write your own processing code (i.e. load, store, etc.) |
|||
04 Apr 2018, 10:13 |
|
revolution 04 Apr 2018, 10:13
Jin X wrote: revolution, file??? I'm saying about library, not raw data. |
|||
04 Apr 2018, 10:13 |
|
Jin X 04 Apr 2018, 10:18
revolution wrote: It can be parsed within fasm source code with file, load, store, virtual, etc. I'm asking about build-in solution... |
|||
04 Apr 2018, 10:18 |
|
revolution 04 Apr 2018, 10:21
Jin X wrote: I'm asking about build-in solution... |
|||
04 Apr 2018, 10:21 |
|
Tomasz Grysztar 04 Apr 2018, 10:26
Jin X wrote:
|
|||
04 Apr 2018, 10:26 |
|
Jin X 04 Apr 2018, 10:37
Ok, but can I use includes like win32a.inc for MS COFF output format (to link it with library that I need by external linker)?
The following codes don't work... Code: format MS COFF include 'win32axp.inc' .code start: invoke MessageBox, 0, 'Hello!', 'Hi', MB_OK or MB_ICONWARNING or MB_TASKMODAL or MB_SETFOREGROUND invoke ExitProcess, 0 .end start Code: format MS COFF include 'win32axp.inc' .code start: cinvoke printf, <'Hello World!',13,10> invoke ExitProcess, 0 section '.idata' import data readable library kernel32, 'kernel32.dll',\ msvcrt, 'msvcrt.dll' import_kernel32 all_api import msvcrt,\ printf, 'printf' |
|||
04 Apr 2018, 10:37 |
|
revolution 04 Apr 2018, 10:48
"MS COFF" doesn't work like that. Instead you need to use extrn and public. The linker handles all the other stuff like kernel32 etc.
|
|||
04 Apr 2018, 10:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.