<?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=Category%3ASDCC</id>
	<title>Category:SDCC - 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=Category%3ASDCC"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:SDCC&amp;action=history"/>
	<updated>2026-07-23T12:55:20Z</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=Category:SDCC&amp;diff=28732&amp;oldid=prev</id>
		<title>Chao at 09:02, 1 December 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:SDCC&amp;diff=28732&amp;oldid=prev"/>
		<updated>2020-12-01T09:02:53Z</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;== Install ==&lt;br /&gt;
* https://sourceforge.net/projects/sdcc/files/latest/download?source=files&lt;br /&gt;
Example for SDCC&lt;br /&gt;
* git clone https://github.com/Blinkinlabs/ch554_sdcc.git&lt;br /&gt;
* cd ch554_sdcc/examples&lt;br /&gt;
== Compile ==&lt;br /&gt;
compile for 8051&lt;br /&gt;
* sdcc -mmcs51 serialtest.c -o serialtest.ihx&lt;br /&gt;
compile for stm8&lt;br /&gt;
* sdcc -mstm8 --std-c99 led.c&lt;br /&gt;
C&lt;br /&gt;
* sdcc -c common.c -D FOSC_160000&lt;br /&gt;
link&lt;br /&gt;
* sdcc main.c common.rel delay.rel&lt;br /&gt;
== Logs ==&lt;br /&gt;
main.c:155: error 20: Undefined identifier 'FREQ_SYS'&lt;br /&gt;
* sdcc -c main.c -D FREQ_SYS = 16000000&lt;br /&gt;
&lt;br /&gt;
== Makefile==&lt;br /&gt;
 CFLAGS := -V -mmcs51 --model-small \&lt;br /&gt;
	--xram-size $(XRAM_SIZE) --xram-loc $(XRAM_LOC) \&lt;br /&gt;
	--code-size $(CODE_SIZE) \&lt;br /&gt;
	-I$(ROOT_DIR)include -DFREQ_SYS=$(FREQ_SYS) \&lt;br /&gt;
	$(EXTRA_FLAGS)&lt;br /&gt;
=== Documents  ===&lt;br /&gt;
* http://wiki.laptop.org/go/SDCC&lt;br /&gt;
* tutorial - http://sdcc.sourceforge.net/mediawiki/index.php/SDCC_tutorial#STM8&lt;br /&gt;
&lt;br /&gt;
[[category: Compiler]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>