Professional Documents
Culture Documents
10/13/2013
Process Flow
Download and install SDCC 2.6.0
Download and install Code Blocks 12.11
Run Code Blocks and configure project
10/13/2013
Create a project
Go to File->New->Project, select MCS51 Project, and click Go.
10/13/2013
Click Next
10/13/2013
Deselect Debug
10/13/2013
Create
a
project
(cont.)
Select Large memory model
10/13/2013
Project properties
Right-click your project name in the Management pane and click
Properties.
10/13/2013
10/13/2013
In the build options, on the Compiler settings tab, select the Policy: Use target options only.
Ensure Verbose, Intel MCS51, MCS51 large model and Output Intel Hex are selected.
10/13/2013
10/13/2013
10
10/13/2013
11
10/13/2013
12
Build a project
To build the project right click on the Project name and select Build, or use
the
icon at the top of the Code::Blocks screen.
10/13/2013
13
Build a Project
Check Build messages and Build log tabs for errors.
When compiling a real source file, this output file will be multiple KB in size.
10/13/2013
14
Custom Settings
For changing syntax color go to Settings->Editor->Syntax highlighting
10/13/2013
15
Custom Settings(cont.)
Spell checker can produce an unnecessary effect for words not in the
dictionary
To remove the effect go to Settings->Editor->SpellChecker and disable
spell checker
10/13/2013
16
10/13/2013
17
Compiler Settings
To set compiler settings go to Settings->Compiler
10/13/2013
18
Compiler Settings
10/13/2013
19