Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

FPC for microcontrollers

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Alexander Todorov
Alexander Todorov wrote 9 lines
Hello list, I found this and it may be interesting to some of you: http://jal.sourceforge.net/ A Pascal like compiler for microcontrollers. It is a good thing to have in FPC like there is in gcc. What do you think?

Could you be more clear ? I don't understand the question? What is the relation with gcc ?

Michael.

Reply by email

Alexander Todorov
Michael Van Canneyt wrote
Could you be more clear ? I don't understand the question? What is the relation with gcc ? Michael.

AFAIK gcc can compile code for some models microcontrollers(cpus for embeded devices).
I am not specialist in this area but know people who write software for custom made devices using GCC and C instead of writing in some assembler language.

The question is do we need/do we want support for this feature in FPC? This can be used for FPC advocacy as well.
Are there people in the list who can/are willing to help? Can FPC beat GCC in this area?

Just wanted to hear different oppinions.

Greetings to all!

Reply by email

Jonas Maebe
to Alexander Todorov
Alexander Todorov wrote
AFAIK gcc can compile code for some models microcontrollers(cpus for embeded devices).

GCC, like FPC, can compile code for any cpu it has a code generator for.

I am not specialist in this area but know people who write software for custom made devices using GCC and C instead of writing in some assembler language.

That means they made a custom code generator (and possibly a custom libc) for their platform.

The question is do we need/do we want support for this feature in FPC?

This is not a particular feature which can be added. For every different microcontroller you want to support, you have to create a code generator (or at least adapt an existing one in case it's a variant of a particular cpu).

I think the actual question is: are there people interested in writing a code generator for the microcontroller you want to use, or something like that. Generic "microcontroller support" would be limited to a description of which RTL parts you minimally need to create a working FPC environment, and possibly some defines in the RTL which strip out things which are not very useful in embedded environments.

This can be used for FPC advocacy as well.

Few if any features are ever implemented because it "helps advocacy". They are added because the people who added them thought they were useful or interesting to have.

Jonas

Reply by email