Forum > Embedded

light pascal

(1/12) > >>

devport:
Hello,
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

marcov:
I assume the avr embedded targets are fairly tight ?

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

MarkMLl

marcov:
For the desperate there is also

https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html

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

six1:
...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:
https://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy#Answer_to_the_Ultimate_Question_of_Life,_the_Universe,_and_Everything_(42)

Navigation

[0] Message Index

[#] Next page

Go to full version