Hitachi compiler options
14 posts
• Page 2 of 2 • 1, 2
- 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 SDK option "#pragma inline_asm" seems to be not very usable.cakeisalie5 wrote:...Is there a way I could do this using Hitachi's compiler/assembler?
Here are some macros, which could come in handy.
CODE: Show
I'll be back!
- cakeisalie5
- Senior Member
- Posts: 101
- 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
Hm, I'm not a great fan of this method... '-'
Isn't there a way to make macros in .src files?
Also (stop me if I'm too quick with questions), did you find out the roles of the different sections (P_TOP, P, C, D, B_BR_Size, B, R), and/or their GNU equivalents (such as .text, .data, etc)?
And do you know how the `pak` files are encoded, and if they contain anything interesting? (it looks like they're used by `lbgsh.exe`, but I still haven't understood the role of this utility)
Isn't there a way to make macros in .src files?
Also (stop me if I'm too quick with questions), did you find out the roles of the different sections (P_TOP, P, C, D, B_BR_Size, B, R), and/or their GNU equivalents (such as .text, .data, etc)?
And do you know how the `pak` files are encoded, and if they contain anything interesting? (it looks like they're used by `lbgsh.exe`, but I still haven't understood the role of this utility)
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
Sure there is. I use an assembler macro myself for my syscall libraries. I wanted to show the pure C-variant first.cakeisalie5 wrote:Isn't there a way to make macros in .src files?
syscall template: Show
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
These things are discussed starting at page 160 of the SHC Manual (SuperH RISC enginecakeisalie5 wrote:...did you find out the roles of the different sections (P_TOP, P, C, D, B_BR_Size, B, R)
C/C++ Compiler Assembler Optimizing Linkage Editor). The linker option "start" is used to give the relocatable sections the proper position in the final binary file. The section names are of some importance during this phase.
F. i.
-start P_TOP,P,C,D,C$VTBL,C$INIT/00300000,B_BR_Size,B,R/08100000
C$VTBL,C$INIT are important for C++ classes.
I'll be back!
14 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 2 guests