Re: Compiler FREBASIC - OS Indepenent and Native Code

new topic     » goto parent     » topic index » view thread      » older message » newer message

See the source code in ASM from main.bas.
It prints on Screen "Hello, World!":


	.intel_syntax noprefix
	.arch i486

	#'main.bas' compilation started at 08:30:58 (FreeBASIC v0.13b)

#entry point
.section .text
	.balign 16

.globl fb_main_entry
.globl fb_MAIN_entry
fb_main_entry:
fb_MAIN_entry:
	call	fb_moduleinit
	call	fb_modulemain
	ret

#user code
fb_modulemain:
	push	ebp
	mov	ebp, esp

_t0001:
push 1
push 16
lea eax, [_t0002]
push eax
call _fb_StrAllocTempDesc@8
push eax
push 0
call _fb_PrintString@12

push 0
call _fb_End@4
	mov	esp, ebp
	pop	ebp
	ret

#initialization
fb_moduleinit:
	finit
	call	_fb_Init@0
	ret

	#'main.bas' compilation took 2.131835191355069e-003 secs

#global initialized constants
.section .data
	.balign 16

	.balign 4
_t0000:	.ascii	"\0"
	.balign 4
_t0002:	.ascii	"Hello, World!!!\0"


It dont use none Interruption of system, only BIOS..

FreeBasic is all!



D. Newhall wrote:
> 
> David Ragazzi wrote:
> > 
> > Ok,
> > 
> > I´m sorry, friends, but I must abandone the Euphoria..
> > 
> > I think this language is very limited, on say, in Structs, OS Independence,
> > and other
> > tecnical details..
> > 
> > I am migrating my projects to freeBASIC (www.frebasic.net)..
> > 
> > Actually, very developers are thinking what FreeBasic is the most complete
> > BASIC..
> > it was pointers, a excelent IDE, etc.. etc.. etc..
> > and make a EXE independent of Operating System.. is not wonderfull??
> > 
> > I think Euphoria will be know later.. sorry.. 
> > 
> > FreeBasic is most complete.. no marketing..
> > 
> > 
> > Good bye to all
> 
> Good luck with that. However, it's impossible to make an OS independant .EXE.
> You can
> compile to machine code in other langauges but FreeBASIC doesn't let you, it
> only supports
> Linux, Windows, and DOS which is less than the platforms supported by
> Euphoria.
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu