Forum > Embedded

light pascal

(1/12) > >>

I was wondering if it is possible to use FPC (not object-oriented) without ballast in the form of system.pas etc.? The clean program weighs over 4kB from the very beginning, which with a memory size of 32kB is a large percentage of use.

I tried to replace the system.pas files with my versions, but the compiler constantly calls some structures that it uses.

the goal is to achieve output file ~ 1kB maybe less.
in ARM

I assume the avr embedded targets are fairly tight ?

I was thinking that referring to them as a template might be a good starting point.


For the desperate there is also

but there they also bypass binutils and resort to assembler directly.

...but marcov,
his statement at the end is:
Here, at last, we have honestly gone as far as we can go. There is no getting around the fact that the 45th byte in the file, which specifies the number of entries in the program header table, needs to be non-zero, needs to be present, and needs to be in the 45th position from the start of the ELF header. We are forced to conclude that there is nothing more that can be done.

...can't belive it will be 45... it must be 42   :D

none insiders must read this:,_the_Universe,_and_Everything_(42)


[0] Message Index

[#] Next page

Go to full version