How to compile an .asm file (32 bits) with FB in Linux

Linux specific questions.
Post Reply
marcoplaza
Posts: 1
Joined: Jun 05, 2019 3:14

How to compile an .asm file (32 bits) with FB in Linux

Post by marcoplaza »

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)
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: How to compile an .asm file (32 bits) with FB in Linux

Post by dkl »

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.
Post Reply