flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
HaHaAnonymous 02 Feb 2015, 15:39
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 18:00; edited 1 time in total |
|||
![]() |
|
tthsqe 02 Feb 2015, 20:03
not true - you can use http://www.agner.org/optimize/#objconv
the result might need to be tweaked a little to get fasm to like it |
|||
![]() |
|
Victor Kindhart 02 Feb 2015, 21:43
tthsqe wrote: not true - you can use http://www.agner.org/optimize/#objconv It can only produce code in yasm/nasm/masm/gasm (no fasm) but thanks for the link anyway. But AFAIK Linux kernel IS written in C? It means it should be somehow possible to compile it to assembly... |
|||
![]() |
|
TmX 03 Feb 2015, 02:05
A quick Google search pointed me to this Perl script:
gas2fasm.txt Take not that GCC only supports AT&T (the default one used by GAS) & MASM style assembly. I haven't test it, though. |
|||
![]() |
|
JohnFound 03 Feb 2015, 09:04
Well, NASM syntax seems to be much closer to the FASM one, so converter should be easy to be made. But it depends on the complexity of the compiler generated source. On the other hand, the compiler will probably generate pretty simple syntax...
|
|||
![]() |
|
DOS386 09 Feb 2015, 08:50
> is there any way to convert C code to FASM?
CC386 compiler: Brews NASM syntax. |
|||
![]() |
|
bubach 10 Feb 2015, 03:45
https://github.com/bubach/Simple-C
A copy of crc's latest published source of the SmallC compiler that is modified to: https://github.com/bubach/Simple-C/blob/master/HISTORY wrote: August 27, 2005 I would be more then happy to receive pull-requests if anybody's up for continuing to work on it, or know of a more recent copy. |
|||
![]() |
|
typedef 10 Feb 2015, 04:25
I have been thinking of such a project. My conversion model is very simple.
It only involves GCC and FASM. Let me know if you are interested and I will send you the model and we can start a project. |
|||
![]() |
|
alexfru 18 Jun 2015, 06:29
https://github.com/alexfru/SmallerC generates NASM source code. It should be possible to generate code for FASM as well. I'm pondering the idea (because FASM is smaller than NASM and I could potentially make the whole toolchain (Smaller C + assembler) fit a floppy and still have plenty of free space left and because FASM may be easier to recompile/port than NASM to some OSes).
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.