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

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

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

Postby marcoplaza » Jun 05, 2019 3:26

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: 3209
Joined: Jul 28, 2005 14:45
Location: Germany

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

Postby dkl » Jun 06, 2019 15:59

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.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 32 guests