Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
hostCompiledSimulation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
hostCompiledSimulation
Commits
e7b914aa
Commit
e7b914aa
authored
Jun 27, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified Makefile for simple to generate objdump from IR code
Signed-off-by:
Gaurav Kukreja
<
gaurav@gauravk.in
>
parent
8be1f226
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
Makefile
examples/simple/app_dir/Makefile
+16
-10
Makefile
examples/simple/ir_c/Makefile
+13
-7
No files found.
examples/simple/app_dir/Makefile
View file @
e7b914aa
# Makefile to compile the C Example code
# make all - generates the debug information, and binary code for all the
# examples in the folder.
include
../../Makefile.macros
TREEDUMP
=
-fdump-tree-all-blocks-details
OPT
=
-O2
#is O3 in original MiBench download. Use O3 for final testing
...
...
@@ -9,22 +10,22 @@ IRDUMP = 1 #defined - dump IR files, undefined - don't.
#PRINT = 1 #if defined and PHASE defined, include soft-float lib. fprintf uses floating point
ifdef
PHASE
CC
=
arm-none-linux-gnueabi-gcc
OBJDUMP
=
arm-none-linux-gnueabi-objdump
CC
=
$(CROSS_GCC)
OBJDUMP
=
$(CROSS_OBJDUMP)
OEXT
=
elf
ifdef
IRDUMP
COPTS
=
-static
${
OPT
}
${
TREEDUMP
}
COPTS
=
-static
${
OPT
}
${
TREEDUMP
}
-T
generic-hosted.ld
else
COPTS
=
-static
${
OPT
}
COPTS
=
-static
${
OPT
}
-T
generic-hosted.ld
endif
ifdef
PRINT
COPTS
+=
-msoft-float
endif
else
CC
=
gcc
OBJDUMP
=
objdump
CC
=
$(GCC)
OBJDUMP
=
$(HOST_OBJDUMP)
OEXT
=
out
ifdef
IRDUMP
...
...
@@ -34,12 +35,17 @@ else
endif
endif
all
:
simple
APP1
=
simple
all
:
simple.$(OEXT) simple.objdump
simple
:
simple.c
$(CC)
$(COPTS)
-o
$@
.
$(OEXT)
$^
simple.$(OEXT)
:
simple.c
$(CC)
$(COPTS)
-o
$@
$^
simple.objdump
:
simple.$(OEXT)
${
OBJDUMP
}
-D
$^
>
&
${
APP1
}
.objdump
test
:
clean
:
rm
-rf
*
.o
*
.c.
*
simple.elf simple.out
\ No newline at end of file
rm
-rf
*
.o
*
.c.
*
simple.elf simple.out simple.objdump
examples/simple/ir_c/Makefile
View file @
e7b914aa
...
...
@@ -15,9 +15,9 @@ ifdef PHASE
OEXT
=
elf
ifdef
IRDUMP
COPTS
=
-static
${
OPT
}
${
TREEDUMP
}
COPTS
=
-static
${
OPT
}
${
TREEDUMP
}
-T
generic-hosted.ld
else
COPTS
=
-static
${
OPT
}
COPTS
=
-static
${
OPT
}
-T
generic-hosted.ld
endif
ifdef
PRINT
...
...
@@ -35,12 +35,18 @@ else
endif
endif
all
:
simple_IR
APP1
=
simple_IR
all
:
simple_IR.$(OEXT) simple_IR.objdump
simple_IR.$(OEXT)
:
simple_IR.c
$(CC)
$(COPTS)
-o
$@
$^
simple_IR.objdump
:
simple_IR.$(OEXT)
${
OBJDUMP
}
-D
$^
>
&
${
APP1
}
.objdump
simple_IR
:
simple_IR.c
$(CC)
$(COPTS)
-o
$@
.
$(OEXT)
$^
test
:
clean
:
rm
-rf
*
.o
*
.c.
*
simple_IR.elf simple_IR.out
\ No newline at end of file
rm
-rf
*
.o
*
.c.
*
simple_IR.elf simple_IR.out simple_IR.objdump
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment