FreeBasic and FreePascal (Developers)
> > 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.
>
> Some people are simply oversensitive.
>
> Oh, and he apparently missed the post with the fpc 16-bit results:
>
> Using last fall's 16-bit snapshot (tiny memory model:)
>
> D:\pp16>file hw.com
> hw.com: DOS executable (COM)
>
> D:\pp16>dir hw.com
> 07/04/2014 10:49 16,528 hw.com
Current trunk is even better:
Hello world sizes in different memory models:
tiny (.com): 13978 bytes
tiny (.exe): 14266 bytes
small: 14190 bytes
medium: 18608 bytes
compact: 20090 bytes
large: 24780 bytes
fpctris sizes:
tiny (.com): 40660 bytes
tiny (.exe): 40948 bytes
small: 40868 bytes
medium: 50034 bytes
compact: 50144 bytes
large: 59598 bytes
And, of course, they will only get even smaller as the 16-bit code generator (and rtl) improves. I know it's still larger than TP7, but in terms of executable sizes, it's already pretty competitive to 16-bit C compilers such as Borland C. That being said, I don't see your patches that improve binary sizes. If, instead of working on the 16-bit target in the past year, I had complained on the forums that FPC does not support 16-bit DOS, everybody would have laughed at me and this target wouldn't exist.
> Rugxulo: -O3 won't do much on a program that only contains one statement
> (writeln('hello world');)
You probably have to compile the RTL also with -O3 in order to see its effect. There's also whole program optimization, which can further improve executable sizes:
http://wiki.freepascal.org/Whole_Program_Optimization
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