[Gambas-user] COMPARISON FILE

BUDI ARIEF GUSANDI budi at ...415...
Thu Sep 9 03:46:00 CEST 2004


Hi all.........

I make a simple hello world console program in gambas

' Gambas class file

STATIC PUBLIC SUB Main()
  PRINT "Hello World"
END

and another one in c language

#include <stdio.h>
int main()
{
	printf("Hello World\n");
	return 0;
}
Compiled without parameter.

For the speed, c executable is faster.

But for the executable file size, here they are :

GCC 3.3.2    = 11.0 KB
TCC 0.9.20   = 2.9 KB
GAMBAS 0.98a = 568 Bytes <-- really small ;)

Only that in the konqueror property, the gambas executable is identified  
as unknown file type, unless i changed it manually ;) ?

Anyway when i need to distribute the executable file, should i also bring  
the related component ? or it's all compiled to the executable ?

Regards,

Budi     




More information about the User mailing list