PJRC.COM Offline Archive, February 07, 2004
Visit this page on the live site

skip navigational linksPJRC
Shopping Cart Checkout Shipping Cost Download Website
Home MP3 Player 8051 Tools All Projects PJRC Store Site Map
You are here: 8051 Tools Software Linux AS31/SDCC Search PJRC

PJRC Store
8051 Dev Board, $79
LCD 20x2 Display, $11
Serial Cable, $5
12 Volt Power, $8
More Components...
8051 Tools
Main Page
Software
PAULMON Monitor
Development Board
Code Library
89C2051 Programmer
Other Resources

AS31 and SDCC For Linux Based Systems

These instructions were developed and tested on a system running Red Hat Linux 7.1. Most linux distributions are very similar and these instructions should work with little or no change on most other linux-based systems.

AS31 Assembler

TODO: clean this up, use nice html


1: Download AS31 Source Code

2: Unpack the archive
tar -xvzf as31_beta3.tar.gz
cd as31

3: Build the code
make

4: Run Tests (optional)
cd tests
../as31 paulmon1.asm
../as31 paulmon2.asm 
../as31 extra.asm
diff paulmon1.hex paulmon1.ref 
diff paulmon2.hex paulmon2.ref 
diff extra.hex extra.ref


5: Copy Executables
su
cp as31 as31_gtk /usr/local/bin

SDCC C Compiler

1: Download SDCC Source Code

2: Unpack the archive
tar -xvzf sdcc230-pj1.tar.gz
cd sdcc

3: Configure the code
./configure

4: Build the code
make

5: Install Executables and C libraries
su
make install


Compiling AS31 and SDCC on RedHat 7.1; Paul Stoffregen
http://www.pjrc.com/tech/8051/tools/linux_compile.html
Last updated: November 28, 2003
Suggestions, comments, criticisms, things you want?? <paul@pjrc.com>