



or1k toolchain stable version
by mgardiner on Aug 13, 2014 |
mgardiner
Posts: 4 Joined: Apr 29, 2014 Last seen: Oct 9, 2014 |
||
Hi,
I recently downloaded the GNU or1k-toolchain (with newlib), version c729a0dbac for or1k-gcc and 7de5823c0f for or1k-src. I am currently trying to compile and run the Dhrystone benchmark on the OpenRISC but am getting strange behavior in my code when I change things that (I think) shouldn't make a huge difference for the compiler. I wanted to download a release version of the or1k toolchain, but I saw on the repository that the latest release is for the older or32 toolchain. Is there a relatively stable version of the newer toolchain that you could recommend I use? The main compilation problem I am experiencing is: My original code has a scanf call that waits for the user to input the number of desired runs through the benchmark. I comment this out and hard-code a number of runs. When I do this the text section drops by about 0x9000 (which I expect) but then my program will not exit out of malloc_lock() when setting up initial data structures before it get to main. |
RE: or1k toolchain stable version
by mgardiner on Aug 15, 2014 |
mgardiner
Posts: 4 Joined: Apr 29, 2014 Last seen: Oct 9, 2014 |
||
Never mind. I found a solution. It turns out that ultimately my linker script was wrong, so malloc would try to allocate memory in .bss instead of the heap and would overwrite my _malloc_lock_own variable, making the processor think another thread was using the memory.
|



