flat assembler
Message board for the users of flat assembler.
Index
> Main > True Assemler or inline assembler? |
Author |
|
Randall Hyde 06 Jan 2004, 17:39
alf_ua wrote: Some comilers (like MASM) don't put into binary fie the code you entered in the source file (this is not true assembler). This is not the definition of an assembler... Unless, of course, you're not going to allow any macro assembler out there to be a "true assembler". Quote:
Yes and no. FASM supports straight binary output. FASM also supports PE and ELF output. PE and ELF require the emission of code that doesn't appear in the assembly source file. This does not mean that FASM is not a "true assembler". By your definition, only DEBUG and its ilk would qualify as a "true assembler". Quote:
Depends on the in-line assembler. GCC, for example, doesn't have any problems at all converting single instructions into multiple instructions at its whim. Other in-line assemblers only assemble the statements you supply, yet the compiler emits other code before and after. Quote:
Depends on how it's written. Almost every HLL with an in-line assembler emits *some* code in addition to the code you write, and there is no way to turn this off. This is the fundamental difference between a HLL with an in-line assembler and a "true assembler". With a true assembler, it is possible to control all the machine instructions that appear in the executable (sans any requirements by the executable format that the linker or some other system must supply). As FASM provides the ability to specify every executable machine instruction in a source file, it is a "true assembler". Cheers, Randy Hyde |
|||
06 Jan 2004, 17:39 |
|
alf_ua 06 Jan 2004, 21:06
You explained it to me very clearly. Thanks a lot.
_________________ Codeing is an ART ! |
|||
06 Jan 2004, 21:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.