Re: [gem5-users] Running Assembly code on ARM SE mode

2014-09-17 Thread GE ZHIGUO via gem5-users
What did you mean by header and footer code? GEM5 need to parse and load the binary for execution. From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Vanchinathan Venkataramani via gem5-users Sent: Wednesday, September 17, 2014 5:50 PM To: gem5 users mailing list Subject: [gem5-

Re: [gem5-users] Running Assembly code on ARM SE mode

2014-09-17 Thread Ali Saidi via gem5-users
You can run assembly code, but you’ll need to compile it. Something like the following will compile with gcc. It uses both ARM and Thumb code. .text .syntax unified .globl _start .arm _start: start: mov r0, #0x1 mov r1, #0 blx loop .thumb .align 7 loop: add r2, r1, #1 su