How to setup free C compiler and assembler SH2
#1
Evolved Member
Thread Starter
How to setup free C compiler and assembler SH2
Been a while since I've been here, Evo long sold but never forgotten. Hope you're all well and happy.
Thought I would post a few comments and screenshots linking to a few hours playing with setting up HEW for SH2 as another group I am in had written some assembly and didn't seem to know how to build it, yet had an interesting sounding project for the Evo 9.
Back in the day I used KPIT Cummins GNU tools, and tend to prefer command line, but now it seems to be HEW with an IDE that is the free tool.
Don't PM me as I don't visit the forum often.
Download: https://www.renesas.com/en-eu/produc...html#downloads
Follow the pictures in order to see the setup steps I used to get C to compile and then load up in IDA.
Feel free to mangle, use, criticise and enjoy as you wish. No warranty deserved, use at your own risk, blah blah.
Second post to follow to show how to get asm to assemble.
Thought I would post a few comments and screenshots linking to a few hours playing with setting up HEW for SH2 as another group I am in had written some assembly and didn't seem to know how to build it, yet had an interesting sounding project for the Evo 9.
Back in the day I used KPIT Cummins GNU tools, and tend to prefer command line, but now it seems to be HEW with an IDE that is the free tool.
Don't PM me as I don't visit the forum often.
Download: https://www.renesas.com/en-eu/produc...html#downloads
Follow the pictures in order to see the setup steps I used to get C to compile and then load up in IDA.
Feel free to mangle, use, criticise and enjoy as you wish. No warranty deserved, use at your own risk, blah blah.
Second post to follow to show how to get asm to assemble.
Last edited by jcsbanks; Apr 4, 2017 at 06:22 AM.
#2
Evolved Member
Thread Starter
How to build assembly language and fix linker errors, define section. The code is relocatable until linked, so arbitrary 0 for address is OK if you are patching code from obj or other files.
-noprelink -nomessage -list="$(CONFIGDIR)\$(PROJECTNAME).map" -nooptimize -start=P/00 -nologo -output="$(CONFIGDIR)\$(PROJECTNAME).abs" -end -input="$(CONFIGDIR)\$(PROJECTNAME).abs" -form=stype -output="$(CONFIGDIR)\$(PROJECTNAME).mot" -exit
This goes into the highlighted box in 13.jpg.
-noprelink -nomessage -list="$(CONFIGDIR)\$(PROJECTNAME).map" -nooptimize -start=P/00 -nologo -output="$(CONFIGDIR)\$(PROJECTNAME).abs" -end -input="$(CONFIGDIR)\$(PROJECTNAME).abs" -form=stype -output="$(CONFIGDIR)\$(PROJECTNAME).mot" -exit
This goes into the highlighted box in 13.jpg.
The following users liked this post:
Construct (May 20, 2019)
Thread
Thread Starter
Forum
Replies
Last Post
ILoveAWD
Pacific Northwest
7
Jun 16, 2012 10:01 AM
Gruppe-S
West Region
3
Nov 24, 2010 12:44 PM
OakosAutomotive
Evo 'For Sale' Wheels / Tires
181
Jul 9, 2009 12:32 PM