Skip to content

ouzhouxiao/C51

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C51

environment

注意:我把VSCode的语法错误提示屏蔽了,想要的删除.vscode的setting.json 注意,代码文件默认放在usr中 临时文件旺仔tmp中 编译器官方网站http://sdcc.sourceforge.net/ 下载地址https://sourceforge.net/projects/sdcc/files/ 选合适的版本就可以了,比如我https://sourceforge.net/projects/sdcc/files/sdcc-win64/3.8.0/sdcc-3.8.0-x64-setup.exe/download Firstly, install sdcc
例程网址https://www.pjrc.com/tech/8051/
Then configure the path file

为什么不使用MDK:
1、功能较弱
2、只适合个人和小团队开发,不适合中型、大型开发
3、是收费软件,需要付费

difference

exp

sdcc			keil

#include<8052.h>	#include<reg52.h>
#define pin P0_0	sbit pin=P0^0;
	
declare nvic function before use
reg 8052.h is different from reg52.h

About

develop c51 by sdcc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.2%
  • Makefile 20.8%