flat assembler
Message board for the users of flat assembler.
Index
> Programming Language Design > Machine / ISA independent macro assembler language |
Author |
|
DimonSoft 27 Oct 2018, 07:45
Well, that’s exactly what is done in many HLLs: having platform-dependent code as a separate entity that is linked to a program. Say, if you use only routines from the standard library of a HLL you get a piece of code that can be compiled for any platform that has a compiler for the language.
If you’re talking about achieving the goal without rebuilding the program at all (not only without changing its source code) then… well, technically, that’s what .NET, Java and stuff like that tries to achieve by using high-level bytecode that is universal across all the platforms and gets translated to a platform-dependent code as late as possible. But the problem here is that even if the format of the executable file is supported on all platforms you still have to install a separate (pretty large) package on the users’ machines that will perform the conversion from the bytecode to the actual machine codes. So, it is basically something between the source code and the machine code but has the disadvantages of both. |
|||
27 Oct 2018, 07:45 |
|
al_Fazline 27 Oct 2018, 10:17
I know that regular HLL like C do something similar, but here I'm specifically asking about implementing it as part of some macro-assembler.
If it's fasm, that as you can see you can achieve SSSO, easily. It's very hard to compile some more or less complex source into a binary getting byte-by-byte identical result on different machines. That's a separate problem of its own and it's solved in some environments, but it's far from being as straightforward as FASM. So my question is regarding specifically macro-assemblers not just any HLLs |
|||
27 Oct 2018, 10:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.