FreeBasic and FreePascal (Developers)
> On each of these forums I asked what the size of the
> "hello world" program would be.
>
> FB= 93k
> FP= 170k
1). FreeBASIC is a native compiler that can compile itself (to assembly) and linked with its own RTL (C?) and libc (here, from DJGPP). AFAIK, there are no real size optimizations, outside of "strip" (remove debugging info). The COFF linker doesn't delete unused code, so everything has to be manually massaged and put into the library, which was never a priority for anybody involved in DJGPP.
EDIT: I almost forgot, FreeBASIC supports several dialects. Even for my really simple and silly Befunge interpreter, I found that my "qb" code was 45 kb larger than the similar "fblite" .EXE. So if you can live with the dialect differences, switching to that (or even "fb") might help.
2). FreePascal also compiles itself but has its own homegrown RTL and units which don't need a C library at all. Here I'm sure that it can be much much smaller. Try smartlinking etc. (-CX -XX -Xs -O3). Smartlinking is not default because it is much slower to compile, which is a "bad thing" for quick development.
3). If none of that is good enough, try UPX: upx --best --lzma --all-filters
> I am about to end my partition in these forums
> but there are beginning to be some outlandish
> (maybe too strong) comments if anyone cares to
> take a peek. I have asked for explinations (sp)
> none have been posted yet.
I don't have even the slightest clue what you're referring to. But the Internet is full of all types of cranks (ahem, comments on every YouTube video ever), so it's probably just normal everyday angst. Don't sweat the small stuff.
Complete thread:
- FREE Basic & Pascal - w3a537, 03.07.2014, 22:39 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- FreeBasic and FreePascal - Rugxulo, 04.07.2014, 05:55
- FreeBasic and FreePascal - marcov, 04.07.2014, 14:01
- FreeBasic and FreePascal - w3a537, 04.07.2014, 20:56
- FreeBasic and FreePascal - w3a537, 04.07.2014, 21:09
- FreeBasic and FreePascal - Rugxulo, 15.07.2014, 18:43
- FreeBasic and FreePascal - Rugxulo, 15.07.2014, 18:59
- FreeBasic and FreePascal - Rugxulo, 15.07.2014, 19:30
- FreeBasic and FreePascal - RayeR, 15.07.2014, 23:47
- FreeBasic and FreePascal - marcov, 17.07.2014, 09:23
- FreeBasic and FreePascal - RayeR, 17.07.2014, 11:02
- FreeBasic and FreePascal - marcov, 17.07.2014, 11:32
- FreeBasic and FreePascal - RayeR, 17.07.2014, 11:02
- FreeBasic and FreePascal - marcov, 17.07.2014, 09:23
- FreeBasic and FreePascal - RayeR, 15.07.2014, 23:47
- FreeBasic and FreePascal - marcov, 05.07.2014, 14:27
- FreeBasic and FreePascal - w3a537, 05.07.2014, 18:44
- FreeBasic and FreePascal - Rugxulo, 15.07.2014, 18:27
- FreeBasic and FreePascal - marcov, 17.07.2014, 11:12
- FreeBasic and FreePascal - Rugxulo, 18.07.2014, 21:53
- FreeBasic and FreePascal - marcov, 19.07.2014, 16:42
- FreeBasic and FreePascal - Rugxulo, 18.07.2014, 21:53
- FreeBasic and FreePascal - marcov, 17.07.2014, 11:12
- FreeBasic and FreePascal - glennmcc, 05.07.2014, 23:40
- FreeBasic and FreePascal - w3a537, 06.07.2014, 04:50
- FreeBasic and FreePascal - w3a537, 04.07.2014, 21:09
- FreeBasic and FreePascal - nickysn, 21.08.2014, 10:11
- FreeBasic and FreePascal - w3a537, 04.07.2014, 20:56
- FreeBasic and FreePascal - marcov, 04.07.2014, 14:01
- FREE Basic & Pascal - Laaca, 05.07.2014, 12:07
- FREE Basic & Pascal - marcov, 05.07.2014, 14:02
- FREE Basic & Pascal - Rugxulo, 09.07.2014, 01:48
- FREE Basic & Pascal - marcov, 10.07.2014, 11:29
- FREE Basic & Pascal - Oso2k, 10.07.2014, 20:02
- FREE Basic & Pascal - Rugxulo, 12.07.2014, 04:38
- FREE Basic & Pascal - marcov, 12.07.2014, 14:43
- FREE Basic & Pascal - marcov, 10.07.2014, 11:29
- FREE Basic & Pascal - Rugxulo, 09.07.2014, 01:48
- FREE Basic & Pascal - w3a537, 05.07.2014, 18:53
- FREE Basic & Pascal - w3a537, 05.07.2014, 19:06
- FREE Basic & Pascal - RayeR, 08.07.2014, 17:08
- FREE Basic & Pascal - w3a537, 08.07.2014, 22:38
- FREE Basic & Pascal - RayeR, 08.07.2014, 17:08
- FREE Basic & Pascal - w3a537, 05.07.2014, 19:06
- FREE Basic & Pascal - marcov, 05.07.2014, 14:02
- FREE-Baysic & FREE-Pascal - DOS386, 27.10.2014, 02:40
- FREE-Baysic & FREE-Pascal - Rugxulo, 01.11.2014, 20:22
- FREE-Baysic & FREE-Pascal - DOS386, 10.11.2014, 04:07
- FREE-Baysic & FREE-Pascal - Rugxulo, 11.11.2014, 01:10
- FREE-Baysic & FREE-Pascal - DOS386, 10.11.2014, 04:07
- FREE-Baysic & FREE-Pascal - Rugxulo, 01.11.2014, 20:22
- FreeBasic and FreePascal - Rugxulo, 04.07.2014, 05:55
Mix view