Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I've learned more from your forums in 3 days than 3 months at school and on the job combined..."

Geography

Where in the world do Tek-Tips members come from?

Software Project: converting ARM7 instructions into integers quickly?

bishboria (Programmer)
1 Jan 07 10:19
Hi everyone.

To complete my Masters Degree I made a piece of software that simulated a multicore processor (written in java.)

The simulator "executes" a cutdown version of the ARM7 instrucion set (I don't need software interrupt instructions or superuser mode instructions, just basic jump, add, subtract, etc)

To cut to the chase, when testing my software I had to hand write programs. This involved a lot of time looking at the instruction set format and writing down the appropriate value for each of the bits. I would then take this 32 bit list and convert it drectly into an integer. (Using the integer means I can extract the data back out quickly during execution time using bitwise operations and shifts.)

I can easily find tools to change C code into ARM7, but I can't find anything that will change the ARM7 code into an integer.

Can anyone help?

Originally the simulator could reach about 500Hz, which was OK. But I have recently made a, literally, tiny modification and it has made the speed go up to 46500Hz!

With this new speed, I would like to test the simulator with larger programs, hence the need for a faster way to create them!

Many thanks in advance.
Salem (Programmer)
1 Jan 07 10:45
> I can easily find tools to change C code into ARM7
Such as?

In gcc terms, it might be something like
gcc -c test.c
ld -b binary -o test.bin test.o

Most linker (ld) output file formats are complex things - full of relocation and symbol table information.  But simple binary formats are essentially little more than memory images of the compiled program in memory.  With a bit of effort, your program should be capable of reading these directly so you don't have to do any manual translation yourself.

--

bishboria (Programmer)
1 Jan 07 10:51
go to http://www.gnuarm.com

there you can download the cross compiler to change C into ARM7 assembly.

using the compile options you can choose which architecture you want to run it on.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close