| | |
Performance issue in code
![]() |
•
•
Join Date: Sep 2007
Posts: 6
Reputation:
Solved Threads: 1
I am working on a embedded board with MIPS architecture and i have a requirement to initialize the 128MB RAM by writing zero's onto the memory. I have coded the following thing
But with this code i am getting a performance issue where the above code takes about 70 to 80 seconds to write zero's onto the memory location. Is there any better way to do the same operation so that the time taken can be reduced to less than 5 seconds.
-BalaC-
ASM Syntax (Toggle Plain Text)
// RAM initialization part li t2, 0x80000000 //RAM starting address li t3, 0x02000000 //(RAM size/0x04) ( 0x08000000(128MB)/0x04 ) li t4, 0x00000000 //Value we need to initialize ram_init: sw t4, 0(t2) addi t2, t2, 0x00000004 addi t3, t3, -0x00000004 bgtz t3, ram_init nop
But with this code i am getting a performance issue where the above code takes about 70 to 80 seconds to write zero's onto the memory location. Is there any better way to do the same operation so that the time taken can be reduced to less than 5 seconds.
-BalaC-
Last edited by cbalu; Apr 9th, 2009 at 10:19 am. Reason: Included code syntax
![]() |
Similar Threads
- Performance Issue Using Full Text Search (MySQL)
- Convert char to Hex (C)
- ASP / CDOSYS - Performance issue (ASP)
- Performance Issue (C)
- Mysterious boot up issue, computer freezes at random times during bootup, erratic (Windows NT / 2000 / XP)
- Problem with objects having objects as attributes (C++)
- embPerl or PHP (Perl)
Other Threads in the Assembly Forum
- Previous Thread: About interrupt 10h? Set video mode?
- Next Thread: writing a a program in machine code
| Thread Tools | Search this Thread |





