



compling C++ code
by kammirzazad on Jan 14, 2014 |
kammirzazad
Posts: 3 Joined: Dec 19, 2013 Last seen: May 27, 2014 |
||
Hi,
I am trying to build my own system on chip using OpenRISC processor and have a problem with generating binary code (.vmem) for simulation : What command should i use to compile my c++ program for OpenRISC ? I am already aware of or32-elf-g++ available in toolchain but i'm not sure what it does. Apparently it starts program from 0x0000 but processor starts from 0x0100 after reset. Do i need specific app to relocate code in memory? Also i don't know how should i interpret my hardware details (such as uart base address & interrupt signal) to compiler. I saw code examples which include "board.h" but when i try to build these using or32-elf-g++ gives no such header error. Any answers or link to useful tutorial on using toolchain for custom hardware would be greatly appreciated. Thanks in advance |



