Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Silly hacks -- APASHTM (.pas to .htm via FPC GO32V2 build) (Developers)

posted by marcov, 30.04.2013, 17:24

> Here's what so weird about it: his default .EXE builds use Lazarus.
> Granted, this was 2005, so maybe smartlinking wasn't effective (or
> available?), but 6.5 MB seems way overkill! The sources are less than 100
> kb!

smartlinking was available for Windows in 2005. Windows always had smartlinking, since it was needed to eliminate calls to unused win32 definitions. (otherwise windows.pas contained a prototype for an function that not all versions of windows had, it would fail to run on such windows versions)

More likely, he didn't enable smartlinking, and probably didn't strip debug info either. A base Lazarus EXE would have been 700-1200kb. (depending on how many widgets were used). Since you compiled the base functionality to a fairly small program, there can't be that much extra.

Nowadays lazarus binaries are larger than then (a few 100kb), but still same magnitude

IOW, it is a debug, not a release build.

> "fpc -XXs -Os apashtm.pas" is only 36 kb on Linux (as opposed to his Linux
> Lazarus build from 2005, which is 5.8 MB. Oh, and it doesn't run, for me it
> needs libglib-2.0.so.0 and other stuff, blech).

GTK and dependencies. Probably GTK1 even.

> This probably isn't super duper useful, and I somewhat doubt how reliable
> it is (esp. regarding "standard" Pascal)

Afaik on level zero parsing level (highlighting) there are not that much differences. A minimal adaptability of the parser would be enough to implement the base level of the various dialects.

>, but hey, it's much better than
> nothing, right? At least without rewriting it myself. :-)

Current Free Pascals contain a secondary parser for documentation tool purposes. It is expanded as the dialect expands (but at a distance). For something more than highlighting, it is probably better.

 

Complete thread:

Back to the forum
Board view  Mix view
22760 Postings in 2121 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum