Japanese
FAQDevelopment environment
BackForward
FAQ/Development environment

Hitach Compiler related


Which of SHCLIB.LIB, SHCPIC.LIB, and SHCNPIC.LIB should I link?

Q)
There are three types of libraries in the SH C standard library: SHCLIB.LIB, SHCPIC.LIB, and SHCNPIC.LIB, but which one should I link?

A)
There are three types of SH C standard libraries: SHCLIB.LIB, SHCPIC.LIB, and SHCNPIC.LIB, but SHCNPIC.LIB is used for Sega Saturn development.
This library is compatible with the SH7600 series (SH2) and does not generate position independent code.
Position-independent code is a program section that can be executed by placing it at an arbitrary address during linking, and is not supported by the Sega Saturn.
Also, do not link multiple standard libraries when linking.


Is there anything I should be careful about with SH C compiler options when developing Sega Saturn?

Q)
Is there anything I should be careful about with SH C compiler options when developing Sega Saturn?

A)
By default, the SH C compiler outputs code for the SH7000 series (SH1).
The Sega Saturn CPU is equivalent to the SH7600 series (SH2), so be sure to specify in the CPU option to output SH7600 series objects.

example

shc -CPU=7600 -def=_SH /i=segalib\include /optimize=1 /speed sample.c

*For WS (sun SPARC Station, HP9000/700 series, Hitachi 3050RX), please use "/" to specify the path. This is the same path name description rule that is allowed to be used in each processing system.


The source file does not appear in the file list in GUISH.

Q)
When I try to display the source code using GUISH, the file does not appear in the file list.

A)
When debugging source code, you need to specify the DEBUG option when compiling and linking.
Please note that the source file will not be displayed if the DEBUG option is not specified or if only one option is specified (only when compiling or linking).


I want to display double-byte code characters such as kanji in source code with GUISH.

Q)
I want to display kanji in source code with GUISH.

A)
Kanji codes can be displayed in the SPARC version and the IBM-PC version.
It can be displayed by specifying a kanji font in the font settings of "View - Source Display... - Setting..." .


When I start GUISH, the message "NO INTERFACE BOARD" is displayed.

Q)
When I start GUISH for E7000PC or EVA board, the message "NO INTERFACE BOARD" is displayed.

A)
It seems that the settings on the Windows side are not configured correctly. Check whether EMMExclude is set in the [386Enh] section of SYSTEM.INI.
For the EMMExclude address, write the address specified on the I/F board as a shared address.
For details, see 3.4.2 "Installation Method" in the 7000PC edition of the E7000 SH7604 Emulator Manual.


I want to use GUISH for debugging both master and slave.

Q)
I am developing with dual CPUs, but can I use GUISH with two E7000PC ICE/EVA boards at the same time?

A)
Can not do. It is possible to use it with IPI.EXE in DOS window. In such cases, use the master and slave CPUs as GUISH and IPI, respectively, or vice versa.
Windows95 allows multiple DOS windows to operate in parallel, but it is unconfirmed whether IPI can operate on DOS windows at the same time.


BackForward
FAQDevelopment environment
Copyright SEGA ENTERPRISES, LTD. 1997