Search code examples
compiler-constructionx86ghcbackendfasm

Is there any other language which compiles to FASM?


FASM is the fastest and most efficient x86/64 assembler out there, and I'm using it as the backend for the compiler of a new language I'm writing.

Since I only use Ubuntu the FASM code which my compiler generates is Linux specific. However I want to make it cross-platform compatible.

Hence I first want to study other compilers which use FASM as a backend too. AFAIK only the Glasgow Haskell Compiler (GHC) does this.

Does anyone know any other compiler which produces cross-platform compatible FASM code? Preferable one which has good documentation.


Solution

  • AFAIK PureBasic uses FASM as a backend.