How to compile an .asm file (32 bits) with FB in Linux?
'' This is an example for the x86 architecture.
Function AddFive(ByVal num As Long) As Long
Asm
mov eax, [num]
add eax, 5
mov [Function], eax
End Asm
End Function
Dim i As Long = 4
Print "4 + 5 ="; AddFive(i)
How to compile an .asm file (32 bits) with FB in Linux
-
- Posts: 1
- Joined: Jun 05, 2019 3:14
Re: How to compile an .asm file (32 bits) with FB in Linux
If you would like to see the .asm file produced by fbc, there is an fbc command line option for that: -RR
for example: fbc -v -RR foo.bas
or: fbc -v -rr -m foo foo.bas
That should generate foo.asm next to foo.bas.
for example: fbc -v -RR foo.bas
or: fbc -v -rr -m foo foo.bas
That should generate foo.asm next to foo.bas.