flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Is FASM a good Backend language for creating a compiler? Goto page Previous 1, 2 |
Author |
|
rugxulo 02 Apr 2018, 20:57
6a05 wrote:
Well, it's a bit more nuanced than that. Sure, bare-bones "Intel" syntax is fairly similar, but anything more than that gets thorny. For the most part, one instruction only has one encoding, so that part doesn't depend on any specific assembler. But assembly is more complex than just raw instructions. 6a05 wrote:
"Up to date" as in bugfixes? Eventually development will slow or stop. Nothing keeps getting developed forever. Sometimes "good enough" is good enough for average use. "Latest instruction set" ... are you really wanting to target AVX-512 in your compiler?? Maybe so, but overall, most compilers don't even use SIMD, even for the integer stuff. I'm just saying, "new" instructions are (mostly) ignored, and I don't really blame them. 6a05 wrote:
The only OSes that anybody "supports" or really uses anymore, for the most part, are the big three: Mac, Win, Linux. Anything else is too weak for heavy use, apparently. Honestly, we all rely too much on billion-dollar OSes, which is probably not wise for future compatibility. 6a05 wrote:
Fast is relative. Does it support SMP / multi-core? GPGPU? I don't think people notice speed as much anymore. Certainly the assembler is probably not the most problematic tool. 6a05 wrote:
FASM hosts and targets on Windows and Linux and others. It supports PE/COFF and ELF linkable objects, so yeah, it's probably good for a compiler backend, assuming that does what you want. I do question what other assemblers are even considered viable these days. Obviously MASM or NASM or YASM are good choices. But there really aren't that many others, are there? GoASM? (Some people still use GAS, but I think overall it's too flawed.) Let's not be naive, some other third-party assemblers are too weak. P.S. Obligatory link to Wirth's Compiler Construction free e-book. |
|||
02 Apr 2018, 20:57 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.