<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=C_Compiler</id>
	<title>C Compiler - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=C_Compiler"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=C_Compiler&amp;action=history"/>
	<updated>2026-07-23T20:09:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=C_Compiler&amp;diff=27814&amp;oldid=prev</id>
		<title>Chao at 09:25, 14 August 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=C_Compiler&amp;diff=27814&amp;oldid=prev"/>
		<updated>2020-08-14T09:25:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Keil C51 Setup ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:STC-toolchain-setup.gif | Quick setup keil C51 for STC&lt;br /&gt;
File:First blink STC.gif | blink, use tool STC ISP&lt;br /&gt;
File:Stc-led-blink.png | Simple Blink LED project structure&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click the thumbnail to see large GIF animation tutorial&lt;br /&gt;
* Notice to install Keil C51 and MDK-ARM in different folder&lt;br /&gt;
* Add MCU list from STC-ISP into Keil C51&lt;br /&gt;
* Add header file, optionally maybe name it to STC15.h, or any&lt;br /&gt;
&lt;br /&gt;
== SDCC ==&lt;br /&gt;
* install sdcc: apt-get install sdcc&lt;br /&gt;
* complie .c file: sdcc main.c, then pack ihx, packihx stc.ihx &amp;gt; stc.hex&lt;br /&gt;
* replace reg51.h by 8051.h header&lt;br /&gt;
==== Multi-file project ====&lt;br /&gt;
SDCC does not support the simultaneous translation of multiple source files, so the compilation of multiple file projects need to be carried out step by step.If your project contains foo1.c foo2.c main.c three files, then the compilation process is as follows:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Sdcc -c foo1.c&lt;br /&gt;
* Sdcc -c foo2.c&lt;br /&gt;
* Sdcc main.c foo1.rel foo2.rel&lt;br /&gt;
You can also compile using the following methods:&lt;br /&gt;
* Sdcc -c main.c&lt;br /&gt;
* Sdcc main.rel foo1.rel foo2.rel&lt;br /&gt;
Finally, you can deal with the ihx file. For multi-file project is best to write a makefile file with make to maintain or write a batch file.&lt;br /&gt;
&lt;br /&gt;
== Notepad ==&lt;br /&gt;
&lt;br /&gt;
== Visual Sudio ==&lt;br /&gt;
&lt;br /&gt;
[[category: C]]&lt;br /&gt;
&lt;br /&gt;
[[category: C IDE]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>