Creating an new project on eclipseSDCC

Posted by: 邱小新 at 上午10:31 in
  1. File -> New -> C Project
  2. In the Project name field, type your name as the name of your new project. Do not use spaces or special characters in the project name (for example, "test1").
  3. Click Finish when you are done.
  4. Project -> Properties
  5. Tool Settings -> SDCC Compiler -> Directories -> Include paths(-I) add C:\Program Files\SDCC\include\mcs51 add C:\Program Files\SDCC\include
  6. File -> New -> Source File -> main.c /* * main.c * * Created on: 2008/9/22 * Author: enos_chiou */ #include <8051.h> #include <stdio.h> char tmp[50]; void main(void) { sprintf(tmp, "hello world.\n"); }
  7. Project -> Build Project
  8. burn the ihx file with ALL-11
  9. 如果要全部重新編譯,則使用 Project -> Clean... 就可以了。

0 意見

張貼留言