Pacific C Compiler (hereinafter referred to as PCC) is a free C compiler (80x86 DOS environment), short and excellent. Recently, this tool has been used in the process of learning UC / OS-II, it feels good.
Download address 1: http://www.htsoft.com/products/pacificc.php
Download address 2: http://www.micrium.com/contents/products/ucos-i/downloads/hitech-pacific-c-80x86-v111.zip
In the second address, there is also a UC / OS-II V1.11, and the personal feeling of the PCC in the second address is better because there are some English use help. The most important thing is instgsg.txt, although it is compiled the UC / OS-II program, but the method of use of PCC is included. Be sure to look carefully.
INSTGSG.TXT translation:
============================================================================================================================================================================================================= ============================ installed and preliminary
============================================================================================================================================================================================================= =========================== installation
1) Install the transplanted version (INSTALL THE POR).
I started from the V2.52 version to the ported version so you still need to buy a book (translator: refer to Microc / OS-II The Real-Time Kernel Second Edition) to get the required file. I assume that the file is installed in the original directory / Software. The original file is not covered. There is a new directory PACC under the top directory Software. This directory contains compilers, tools, and support files.
This transplant version includes Hitech Pacific C compiler and tools and DMAKE, that is, everything you need is included in this transplant version. These tools can be found under the directory / Software / PACC / BIN.
The Hitech Pacific C User Manual is not included there. Although it is not necessary, I still recommend you to go to http://www.htsoft.com/products/pacific.html download.
Adjust your PATH environment variable contains the following directory
SET PATH = / Software / PACC / BIN;% PATH%
Set the makestartup environment variable so you can point it to the startup.mk file. Refer to the DMAKE manual to get more details. Set makestartup = / Software / PACC / LIB / Startup.mk
Set the RTDEVOS environment variable for Win95 (when using DOS, Win31, Win95, Win98 operating system) or WinNT (for WinNT, Win2k, WinXP).
I would like to write these settings to a BAT file that may be more convenient. Refer to the following RTSetup.bat section.
2) Test by build example
Go to Directory / Software / UCOS-II / EX1_86L / PACIFIC / TEST, then run the MakeTests batch file and generate a TEST program. Other examples are in this class. If there is no appearance in the terminal window, press the ESC button and read the following VIDSET.
============================================================================================================================================================================================================= ================= vidset
If you don't respond when you run the Test program, press ESC to return and run the Vidset. Run TEST again. I am not very determined why this can fix this problem, but it does work, at least to me. If you have the same problem I suggest setting a shortcut to let it open the CMD window automatically run Vidset. You can make this shortcut to cmd / k vidset to do this. (Alternatively, you can run the VIDSET in the following section.
The source code of the Vidset is under the subdirectory PACC / UTILS. The executable is in the pacc / bin subdirectory. You need to compile this program with a DJGPP C compiler.
============================================================================================================================================================================================================= ================ rtSetup
I use a BAT file to set the environment variable and execute the Vidset. This BAT file is RTSetup.bat which is included in the bin directory. I have a shortcut on the desktop that runs "CMD / K PACC / BIN / RTSETUP". (The start directory is set to C: / Software). When I open the shortcut, I can automatically get a setting DOS environment. The default RTDDEVOS value is WinNT, you can also change to Win95 as needed.
Below is the details of creating shortcuts: WinXP:
1) Right Click ON The Desktop Select New -> Shortcut from the menu.2) ENTER CMD for the location of the item (or Command for Windows 98 And Older Systems) 3) Give The Shortcut Any Name You Want.4) Click ON THE FINISH Button.5) Right Click on The Shortcut and Select Properties.6) Change the Target Text Box To: CMD / K PACC / BIN / RTSETUP.BAT8) Change The Start in Text Box To : C: / Software9) Click on the ok button. ====================================== ===============================================================================00
If you get the "File or Directory Not Found" error when you build. Check file autoexec.nt does not reset the PATH environment variable. You can find this file in the c: / windows / system32 directory.
If the PATH variable is reset, or delete the command, either join / Software / PACC / BIN to the beginning of the list of lists.
============================================================================================================================================================================================================= ================ write your own code
If you need to write your own program, I suggest you copy a subdirectory of a copy.
You only need to create a new Test.c file in the Source subdirectory to create your own program. You also need to modify the base variable settings in your Makefile. The MakeTest batch file under the TEST directory should be as valid for your new program.
Translator's prompt: According to different situations, it may also be modified for Test.Lnk (this file like a shortcut) file, otherwise it will not be able to link.
Tony Richardson01/29/03Richardson@evansville.edu Translator: Yuanhen@msn.com