[fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Nick Brown
A very interesting port for an OS-less platform would be a port to the PIC


family of microcontrollers. There may be some issues because memory is in
short 

supply but notwithstanding, this would be pretty cool.

 

Any comments?

 

 

 




 

Nick Brown

E-mail:   mailto:nick.br...@greenamps.co.uk
nick.br...@greenamps.co.uk

Post:1 Friar Street, Reading, Berkshire, RG1 1DA, UK

Tel:  +44 (0) 870 486 8783

Fax: +44 (0) 870 288 9520

Mobile:  +44 (0) 7901 97 36 45

Skype:  nick.brown 

SIP:  mailto:3218...@sipgate.co.uk 3218...@sipgate.co.uk

P

Please consider the environment before printing this e-mail




 

 

 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Michael Schnell
Nick Brown wrote:
 A very interesting port for an “OS-less” platform would be a port to the
 PIC

There is a 8 bit, a 16 bit, and a 32 bit series of PIC processors. The
32 Bit platform is MIPS.

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Marco van de Voort
In our previous episode, Nick Brown said:
 A very interesting port for an OS-less platform would be a port to the PIC
 family of microcontrollers. There may be some issues because memory is in
 short  supply but notwithstanding, this would be pretty cool.

As Michael said, what PIC exactly ? The three ranges (8/16/32) are totally
different. I'm using the 8-bitters and the 16-bitters.

- IIRC the 8-bit PICs have a segmented memory model (pages of 256 bytes
selected using a selector register)

- 2-8kb of memory (maximum on the 16-bit iirc, with maybe a 16kb coming
  soon) is too little to even use strings and other normal routines.

- You need SFR support, but worse, to convert the device specific header
  file for each of the hundreds of different chips, and maintain them.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Michael Schnell
IMHO, porting FPC to 8 and 16 Bit PIC is close to impossible, while a
PIC 32 Bit (=MIPS) port should be doable.

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Florian Klaempfl
Nick Brown schrieb:
 A very interesting port for an “OS-less” platform would be a port to the
 PIC
 
 family of microcontrollers. There may be some issues because memory is
 in short
 
 supply but notwithstanding, this would be pretty cool.
 
  
 
 Any comments?

If it's really interesing, somebody would have started already a port.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Marco van de Voort
In our previous episode, Florian Klaempfl said:
  
   
  
  Any comments?
 
 If it's really interesing, somebody would have started already a port.

Afaik all architectures are done by three long time FPC devels (Jonas,
Peter, Florian, correct me if I'm wrong), except for PPC64, so that is a bit
oversimplified maybe?

If it really was that way, there would have been more variation in who made
new ports.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Florian Klaempfl

Marco van de Voort schrieb:

In our previous episode, Florian Klaempfl said:
 


Any comments?

If it's really interesing, somebody would have started already a port.


Afaik all architectures are done by three long time FPC devels (Jonas,
Peter, Florian, correct me if I'm wrong), except for PPC64,


... and except sparc (started by Mazen) and m68k (started by Carl). Both 
were not long time FPC developers when they started the port ;)



so that is a bit
oversimplified maybe?

If it really was that way, there would have been more variation in who made
new ports.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Michael Schnell
I'd really appreciate the 32 Bit PIC stuff, as this is MIPS and I might
want to do a NIOS port some day and the NIOS ISA is said to be quite
similar to MIPS (even the names are only a few bits apart :) )

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Daniël Mantione



Op Thu, 23 Jul 2009, schreef Michael Schnell:


I'd really appreciate the 32 Bit PIC stuff, as this is MIPS and I might
want to do a NIOS port some day and the NIOS ISA is said to be quite
similar to MIPS (even the names are only a few bits apart :) )


The main challenge for a MIPS port is the absence of flags, there is a lot 
of code in the compiler that returns expression results in LOC_FLAGS. Of 
course it is perfectly possible to change these codes to use LOC_REGISTER, 
but it is work.


Daniël___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Michael Schnell
I'd really appreciate the 32 Bit PIC stuff, as this is MIPS and I might
want to do a NIOS port some day and the NIOS ISA is said to be quite
similar to MIPS (even the names are only a few bits apart :) )

-Michael

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Topic for the list - Embedded port for PIC Micros

2009-07-23 Thread Michael Schnell

 The main challenge for a MIPS port is the absence of flags, there is a
 lot of code in the compiler that returns expression results in
 LOC_FLAGS. Of course it is perfectly possible to change these codes to
 use LOC_REGISTER, but it is work.

I see. Thanks for the pointers !

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Apache 2.2 modules for FreeBSD

2009-07-23 Thread Leonardo M . Ramé

Hi, I'm trying to run the examples of http22 units in a FreeBSD 7.2 for i386, 
with Apache 2.2.11.

The examples compiles with FPC 2.2.4, but when I try to run apachectl start, 
it crashes with this message:

httpd: Syntax error on line 104 of /usr/local/etc/apache22/httpd.conf: API 
module structure 'hello_module' in file 
/usr/local/libexec/apache22/mod_hello.so is garbled - expected signature 
41503232 but saw  - perhaps this is not an Apache module DSO, or was 
compiled for a different Apache version?

I downloaded the units to test this from 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/httpd22

To compile them I used:

fpc -WR -XX -Xs -B -Fuhttpd22/src -Fuhttpd22/src/apr -Fuhttpd22/src/apriconv  
mod_hello.pp

Any help will be appreciated!.
Leonardo.



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel