Hitachi compiler options
14 posts
• Page 1 of 2 • 1, 2
Hitachi compiler options
I read that you can compile a program with different options: size, nospeed, speed. How can I change the setting? I already tried doing it with the preprocessor, but that didn't work.
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Hitachi compiler options
If you use the CASIO SDK, look for MakeOptC.TXT or MakeOptCPP.TXT (if I remember correctly, they reside in the build-directory).Casimo wrote:I read that you can compile a program with different options: size, nospeed, speed. How can I change the setting? I already tried doing it with the preprocessor, but that didn't work.
I'll be back!
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Hitachi compiler options
Nope.Casimo wrote:Is it also possible to choose this for every project seperately?
I'll be back!
- cakeisalie5
- Senior Member
-
- Posts: 102
- Joined: Sun Mar 27, 2016 10:24 am
- Location: France
- Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50
Re: Hitachi compiler options
By the way (sorry if that's not the correct topic to deal with this), does Hitachi's compiler define any compiler-specific macro, something like __HITACHI__?
Part of the Planète Casio community (FR) - main author of Cahute
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Hitachi compiler options
Yes. __HITACHI__ (1) and __HITACHI_VERSION__ (0x0600).cakeisalie5 wrote:By the way (sorry if that's not the correct topic to deal with this), does Hitachi's compiler define any compiler-specific macro, something like __HITACHI__?
I'll be back!
- cakeisalie5
- Senior Member
-
- Posts: 102
- Joined: Sun Mar 27, 2016 10:24 am
- Location: France
- Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50
Re: Hitachi compiler options
I'm using that then, thanks 

Part of the Planète Casio community (FR) - main author of Cahute
- cakeisalie5
- Senior Member
-
- Posts: 102
- Joined: Sun Mar 27, 2016 10:24 am
- Location: France
- Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50
Re: Hitachi compiler options
I'm looking for a feature in Hitachi's compiler/assembler that I have in GCC:
In .S files, GCC uses the same preprocessor as in C, which allows me to do this (inspired from A. Bertheussen's work):
from asm.h
from display/syscalls.S
Is there a way I could do this using Hitachi's compiler/assembler?
Also, is there a manual with everything Hmake supports in it?
Thanks in advance!
In .S files, GCC uses the same preprocessor as in C, which allows me to do this (inspired from A. Bertheussen's work):
from asm.h
- Code: Select all
/* Define a syscall. */
# define SYS(_X, _NAME) \
ENTRY(_NAME) \
mov.l 1f, r2; \
mov.l 2f, r0; \
jmp @r2; \
nop; \
1: .long 0x80010070; \
2: .long _X
from display/syscalls.S
- Code: Select all
#include <asm.h>
SYS(0x01C, _Bdisp_WriteGraph_VRAM)
SYS(0x01D, _Bdisp_WriteGraph_DD)
SYS(0x01E, _Bdisp_WriteGraph_DDVRAM)
SYS(0x022, _Bdisp_ReadArea_VRAM)
SYS(0x023, _Bdisp_ReadArea_DD)
SYS(0x024, _Bdisp_GetDisp_DD)
Is there a way I could do this using Hitachi's compiler/assembler?
Also, is there a manual with everything Hmake supports in it?
Thanks in advance!

Part of the Planète Casio community (FR) - main author of Cahute
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Hitachi compiler options
The last few pages ofcakeisalie5 wrote:Also, is there a manual with everything Hmake supports in it?
"Renesas High-performance Embedded Workshop V.4.05 Manual"
contain the maximum information about HMAKE I could find up to now.
I'll be back!
- cakeisalie5
- Senior Member
-
- Posts: 102
- Joined: Sun Mar 27, 2016 10:24 am
- Location: France
- Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50
Re: Hitachi compiler options
Ah yep, found it. Well, the least I can say is that it's lite. '-'
Part of the Planète Casio community (FR) - main author of Cahute
14 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 17 guests