- What's New
- technical support
- Application Notes
- Device List
- Hints and Tips
- C38 - Special Page Access
- C6805 - Filling Unused ROM
- C6805 - Setting Multiple MORs
- C6805 - Working with MMEVS05/MMDS05
- C6808 and Emulators
- COP8C - Executing Initialization Code
- COP8C - S Register Support
- Debugging: Using Macros to Monitor Program Flow
- Declaring SPECIAL Memory
- eTPU - Function Set Support
- LCD Interface
- LOCAL Memory
- Low Cost, Low Speed A/D conversion for Embedded Systems
- MPC - Branch Islands on the PIC16C5x
- MPC - Constant ROM Arrays
- MPC - Named Address Space
- MPC - Setting Configuration Fuses
- Non-linear Data Transformations
- Using the CodeWright(TM) Editor
- Product-specific Notes
- product registration
- Distributors and resellers
- About Us
- Fixed Point
- Fuzzy Logic
- FAE/Client Login
- more information
Using the CodeWright(TM) Editor
You can use the Codewright programmers' editor with any Byte Craft C compiler. However, some special configuration techniques are required during setup. The commands on this page use the minimum number of command line options necessary to compile the current source file, and create an error file with the same basename so that Codewright can help you locate and fix errors. You can add any other options you require to the compiler commands.
These instructions apply to Codewright version 6.
Selecton the submenu of the menu.
Make sure Error Parsers is checked and click .
Selectfrom the menu.
Click on the name of your project in the list on the left.
Click on the Tools tab.
Select Compile from the Category list and
.cfrom the File Type list and make sure the Redirect output checkbox is unchecked in the Command Options.
Click the Compiler Name and type the name of the compiler (eg:button to the right of the
In the Compile edit box, type the full path to the compiler executable and the compile command line. For example:
c:\bcl\bcl.exe %b%e +e
%b%ewith the basename and extension of the current workfile. This command runs the BCL compiler and creates an error file with the same basename as the workfile. If
c:\bcl\bcl.exeis not the path to your Byte Craft compiler, substitute the correct path to the compiler
.exefile. You can also add any other compiler command line options that you require, but you must include the
+eto create an error file.
In the Debug Compile edit box, type
c:\bcl\bcl.exe %b%e +e -ddebug
-ddebugcommand line option defines an identifier used for conditional compilation. It is the equivalent of putting #define debug in your source file. Codewright gives you to ability to use this compile command for debugging, and the Compile command you set in the step above for production code. The defined identifier can be anything;
debugis used as an example.
Select the Errors tab.
%b.errin the Error Filename edit box.
In the Error Parser 1 edit box, select
Clickto save your settings.
Codewright features C syntax coloring, version control, and debugging environments. Codewright is a trademark of Premia Corporation.