OpenCores
no use no use 1/1 no use no use
ARM 7 code porting
by albin on Feb 17, 2012
albin
Posts: 1
Joined: Dec 11, 2009
Last seen: Feb 17, 2012
I have some code running on ARM7-TDMI-S that uses SPI and I2C peripheral.
Would like to port it to OpenRISC.
Have anybody tried porting/compiling ARM7 code to OpenRISC?
If yes, which compiler did you use? GCC, or?
If yes, what kind of issues have you bumped into?

Appreciate any tip and advice.

RE: ARM 7 code porting
by jeremybennett on Feb 17, 2012
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019
I have some code running on ARM7-TDMI-S that uses SPI and I2C peripheral.
Would like to port it to OpenRISC.
Have anybody tried porting/compiling ARM7 code to OpenRISC?
If yes, which compiler did you use? GCC, or?
If yes, what kind of issues have you bumped into?

Appreciate any tip and advice.

Hi Albin,

Look forward to hearing how you get on. In principle it should work, particularly if the ARM7 code was originally compiled with GCC. However IIRC, ARM is usually little-endian, while OpenRISC is big-endian by default, so there is plenty of scope for endian bugs.

The peripherals are presumably not identical, so you'll need to adjust the code accordingly.

Best wishes,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.