Hi, When i run my code in simulation debug mode on the workbench ,i have set it to display the instruction addresses and in the project settings i have set compiler options for optimization to none. Inspite of that there are two instruction where the instruction addresses does not show up and the simulator does not execute them.Is it because of the code or the project settings. The instructions are buf_handle = receive_packet(0, 5, &cur_pkt_len); //buf_data_ptr = (__declspec(sdram) long long *)(buffer_get_data_ptr(buf_handle)); buf_data_ptr = (__declspec(sdram) void *) (((unsigned int)buffer_get_data_ptr(buf_handle)) + 3); If anyone is aware of the solution,please let me know. Thanks, shweta
Hi Shweta, The code that you have pasted here looks like a bunch of function calls and type casts rite? Take a look at the assembly code, and try to see what is going on, it might be executing these statements. Even though you have turned the compiler optimization off, if I not wrong the compiler will perform basic optimzations that is expected of any compiler. Hope this helps Vijay Ram On Sun, 31 Oct 2004, Shweta Rao wrote:
Hi,
When i run my code in simulation debug mode on the workbench ,i have set it to display the instruction addresses and in the project settings i have set compiler options for optimization to none. Inspite of that there are two instruction where the instruction addresses does not show up and the simulator does not execute them.Is it because of the code or the project settings. The instructions are
buf_handle = receive_packet(0, 5, &cur_pkt_len); //buf_data_ptr = (__declspec(sdram) long long *)(buffer_get_data_ptr(buf_handle)); buf_data_ptr = (__declspec(sdram) void *) (((unsigned int)buffer_get_data_ptr(buf_handle)) + 3);
If anyone is aware of the solution,please let me know.
Thanks, shweta _______________________________________________ ixp1200 mailing list ixp1200@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/ixp1200
participants (2)
-
Shweta Rao
-
Vijay Ramamurthi