i just looked to see if you were right, you arent. fb calls a runtime function when using freefile, so when you compile a binary, it is still
important to have used FREEFILE.
? "hello"
Dim As Integer f
f = FreeFile
becomes
.intel_syntax noprefix
#sda.bas' compilation started at 05:07:05 (FreeBASIC v0.16b)
.section .text
.balign 16
.globl _main
_main:
push ebp
mov ebp, esp
and esp, 0xFFFFFFF0
sub esp, 8
mov dword ptr [ebp-8], 0
mov dword ptr [ebp-4], 0
call ___main
push dword ptr [ebp+12]
push dword ptr [ebp+8]
call _fb_Init@8
.Lt_0001:
push 1
push 5
push offset Lt_0003
call _fb_StrAllocTempDescZEx@8
push eax
push 0
call _fb_PrintString@12
call _fb_FileFree@0 ;<--- I keep your app from puking under unexpected conditions
mov dword ptr [ebp-8], eax
.Lt_0002:
push 0
call _fb_End@4
mov eax, dword ptr [ebp-4]
mov esp, ebp
pop ebp
ret
#sda.bas' compilation took 1.825374210980613e-003 secs
#global initialized constants
.section .data
.balign 16
.balign 4
Lt_0003: .ascii "hello\0"