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-
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