flat assembler
Message board for the users of flat assembler.
Index
> Main > q. about fasm's way of handling output format selection |
Author |
|
LocoDelAssembly 05 Oct 2006, 19:15
Design Principles or why flat assembler is different? wrote: 3. Same Source, Same Output |
|||
05 Oct 2006, 19:15 |
|
arafel 05 Oct 2006, 19:26
Uh, I see.
Thanks. |
|||
05 Oct 2006, 19:26 |
|
f14t 14 Oct 2006, 09:43
locodelassembly wrote:
I REALLY BEG TO DISAGREE (was that loud?, sorry.). See my example in NASM and you'll agree with me: ==================================== Code: ; test.asm [section .code] [global main] main: push msg [extern puts] call puts push 0 [extern exit] call exit [section .const] msg db "I am a portable program.",13,10,0 ==================================== to compile it for Windows i'll do: nasm -f win32 test.asm tp compile it for Linux i'll do: nasm -f elf test.asm So, wouldn't command line option for format be a better idea ? |
|||
14 Oct 2006, 09:43 |
|
Tomasz Grysztar 14 Oct 2006, 09:53
You depend on the external standard library here. If you're going to use some standard library, you may as well provide some standard macros (see vid's FASMLIB project), see also http://board.flatassembler.net/topic.php?t=5131
PS. And see source of fasm itself for a much more sophisticated example of how to assemble the same source for different OSes. |
|||
14 Oct 2006, 09:53 |
|
f14t 15 Oct 2006, 09:38
Tomasz Grysztar wrote: You depend on the external standard BUT just a single command line switch would have been a lot better. Anyways, tell me what does "PS" mean. |
|||
15 Oct 2006, 09:38 |
|
tom tobias 15 Oct 2006, 10:38
Quote:
http://silmaril.ie/cgi-bin/uncgi/acronyms Post Scriptum [Latin: after writing [used for additional notes at the end of a letter]] |
|||
15 Oct 2006, 10:38 |
|
vid 15 Oct 2006, 11:30
Quote: just a single command line switch would have been a lot better. |
|||
15 Oct 2006, 11:30 |
|
OzzY 15 Oct 2006, 18:50
The best thing about FASM is that you control everything from the source code.
You don't need external libraries, don't need long command lines to compile and don't even need a linker. Also, the code get assembled in the same way it's typed in the source, so you have an exact view of what your executable will look like. If this feature is dropped than it would not be FASM anymore, and we would just be stopping the evolution! |
|||
15 Oct 2006, 18:50 |
|
f14t 16 Oct 2006, 09:59
OzzY wrote: The best thing about FASM is that you control everything from the source code. I agree with that Quote: You don't need external libraries, I do not agree with that How will i write OpenGl like 3D programs without OpenGL (external you see) ? How will i write GUI programs like GTK etc without using GTK (external you got it) ? How do you Do all these things without all these libraries (external you now know it really well) ? |
|||
16 Oct 2006, 09:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.