Writing firmware: assembly or high level?

前端 未结 17 1830
时光说笑
时光说笑 2020-12-13 02:29

Related to:

  • Testing firmware
  • starting a microcontroller simulator/emulator
  • Interpreting assembly code

If you are writing co

17条回答
  •  轮回少年
    2020-12-13 03:17

    Go for c !

    I've worked for a large CE manufacturer. The last time I saw assembly was there was around 1996 in some small interrupt services routines for RC5 and RC6 decoding and TV tuning algorithms. After that always used c, and C++ (only used classes, no stl, exceptions or rtti). I have good experiences with the old KEIL compiler for 8051 and with greenhills compiler (MIPS) and the VxWorks toolset (PowerPC based).

    As Roddy says, first write in C , and optimize in assembly later (if needed).

提交回复
热议问题