- 打卡等级:初来乍到
- 打卡总天数:4
- 最近打卡:2025-05-01 06:58:22
金牌会员
- 积分
- 1333
|
发表于 2024-1-8 16:46:11
|
显示全部楼层
本帖最后由 jmg 于 2024-1-8 16:50 编辑
There are two broad types :
Compilers : that operate very like C compilers - source code is parsed and converted into HEX on a PC, and the HEX is downloaded to the 8051.
Search BASCOM-8051, for a commercial compiler example.
Drawbacks: no floats, and not great at supporting 1T 8051 parts
Not BASIC, but another readable compiler is Turbo51, based on Turbo Pascal. Free download.
Interpreters: These operate like Python, also an interpreted language. The first PC languages were BASICs, and intel released a ROM BASIC52 back in 1980's.
Here, a BASIC engine is programmed into the 8051 Flash once, and then ASCII source is sent to RAM/EEPROM, and it can be listed and run.
One limitation is the RAM size of the host 8051.
|
|