flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
UCM 04 Sep 2006, 00:33
Unfortunately there is no way to split up a project into multiple files in "C" style (i.e. "cc file1.c file2.c file3.c file4.c file41_2.c"), but you can use the "include" directive to include other files. Or, you could use object output and link them together, like most C projects do.
|
|||
![]() |
|
shoorick 04 Sep 2006, 04:54
it is possible also to use COFF format and later linking. then you may use many asm-files - in WinAsm Studio in project explorer they have to be switched into "Module" mode: then when you will press "go all" they all will be assembled with fasm one bye one - i'll try to do example, but later - in few days.
|
|||
![]() |
|
RedGhost 04 Sep 2006, 19:30
Hmm, for C I have multiple C files but do "#include file.C", same with asm, but like the others said you will need a third party linker, GoLink or ALink aren't bad.
_________________ redghost.ca |
|||
![]() |
|
vid 05 Sep 2006, 07:35
you can precompile procedure to pure code and use
Code: MyProc: file 'MyProc.bin' but with FASM's speed i don't see reason why not just break one source into modules. |
|||
![]() |
|
shoorick 06 Sep 2006, 09:30
here is example of three asm-files of COFF format with later linking. needs scan.exe by Vortex and polink to link (based on example by Vortex).
linker is complaigning on some ".data" sections with different attributes - i had not understand it yet because i did it first time by myself ![]() anyway it works ![]() enjoy!
_________________ UNICODE forever! Last edited by shoorick on 07 Sep 2006, 04:40; edited 1 time in total |
|||||||||||
![]() |
|
RedGhost 06 Sep 2006, 13:30
shoorick wrote:
POLINK does this if the sections are merged, a '.flat' section could cause this but it is nothing to worry about. _________________ redghost.ca |
|||
![]() |
|
shoorick 07 Sep 2006, 04:48
i found the reason the linker complagning to:
in main.asm: Code: section '.data' data readable writeable
hInstance dd ? in message.asm: Code: section '.data' data readable writeable hello db "Hello!",0 first had attribute "uninitialized" due tu "?", second - "initialized" i had renamed first section to ".udata": Code: section '.udata' data readable writeable
hInstance dd ? and there will be no warnings more. as well as we can not sort initialized and not initialized data in section, combined from different objects, it is better to place them in separate sections. (".flat" section good for small applications.) also, i agree: this way does not give us any advantage then usual "incs" if all asms will be assembled each time. this way can give advantage if make utility used, which checks if there is need to reassemble object or not. regards! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.