Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by badomen@Jan 9 2007, 01:50 PM if you have any large local data structures try making them global to see if the problem goes away.
so instead of this:
int main()
int big_array[1024*1024];
.....
make the array global:
int big_array[1024*1024];
int main()
.....
i hope that helps
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20444)
--- quote end ---
--- Quote End --- BadOmen, Thanks for the reply. However, I tried your suggestion and there was no difference in the outcome. I have been continuing to dig as deep as possible and I found out a little more information. If can successfully have it halt at program start (<_start>) and can manually step through until the call to the alt_main. When I make the call, it appears to go into the weeds. The exact line that appears to cause the failure is: 0x00000044 <_start+68>: call 0xe5b4c <alt_main> I have unsuccessfully tried to set breakpoints in alt_main to find out where it fails, but it doesn't permit me to. Maybe I'm looking at the wrong file containing the alt_main function. I would also like to find out where the map file is (or equivalent) that would allow me to see which functions are loaded and their corresponding addresses in memory. What is this file called and where abouts would it be located? I figure that it wouldn't hurt to look through here to see if there is anything that catches my eye. I did come across another thread talking about the differences between alt_main and main and it appears that calling main assumes that everything is initialized already. I am not sure if this may be my problem or not, but I will start looking into this as well. Any help or advice would be greatly appreciated. Thanks, Tom