Register

Hitachi compiler options

Discuss issues related to the fx-9860G Software Development Kit
Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Hitachi compiler options

Postby Casimo » Wed Feb 27, 2013 6:58 pm

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

Senior Member
User avatar
Posts: 584
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Hitachi compiler options

Postby SimonLothar » Thu Feb 28, 2013 9:01 am

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.
If you use the CASIO SDK, look for MakeOptC.TXT or MakeOptCPP.TXT (if I remember correctly, they reside in the build-directory).
I'll be back!

Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Re: Hitachi compiler options

Postby Casimo » Thu Feb 28, 2013 3:29 pm

Is it also possible to choose this for every project seperately?
Image

Senior Member
User avatar
Posts: 584
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Hitachi compiler options

Postby SimonLothar » Thu Feb 28, 2013 6:23 pm

Casimo wrote:Is it also possible to choose this for every project seperately?
Nope.
I'll be back!

Senior Member
User avatar
Posts: 100
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860 GII, Casio fx-CG 50

Re: Hitachi compiler options

Postby cakeisalie5 » Sat Apr 15, 2017 9:27 pm

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 the P7 project - libp7 - libg1m - FONTCHARACTER reference

Senior Member
User avatar
Posts: 584
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Hitachi compiler options

Postby SimonLothar » Sun Apr 16, 2017 5:09 am

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__?
Yes. __HITACHI__ (1) and __HITACHI_VERSION__ (0x0600).
I'll be back!

Senior Member
User avatar
Posts: 100
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860 GII, Casio fx-CG 50

Re: Hitachi compiler options

Postby cakeisalie5 » Sun Apr 16, 2017 7:27 am

I'm using that then, thanks :D
Part of the Planète Casio community (FR) - main author of the P7 project - libp7 - libg1m - FONTCHARACTER reference

Senior Member
User avatar
Posts: 100
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860 GII, Casio fx-CG 50

Re: Hitachi compiler options

Postby cakeisalie5 » Fri Apr 28, 2017 12:39 pm

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
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 the P7 project - libp7 - libg1m - FONTCHARACTER reference

Senior Member
User avatar
Posts: 584
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Hitachi compiler options

Postby SimonLothar » Fri Apr 28, 2017 6:50 pm

cakeisalie5 wrote:Also, is there a manual with everything Hmake supports in it?
The last few pages of
"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!

Senior Member
User avatar
Posts: 100
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860 GII, Casio fx-CG 50

Re: Hitachi compiler options

Postby cakeisalie5 » Fri Apr 28, 2017 7:32 pm

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 the P7 project - libp7 - libg1m - FONTCHARACTER reference

Next

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 1 guest