This document is a FAQ about Holtek C Compiler V3. It introduces the new features of V3, the differences between V3 and V2, and the special syntax and usage of V3.
The Holtek C Compiler V3 FAQ is revision V1.80, dated September 13, 2021. It assumes the reader knows how to write C programs and has read and understood the target MCU datasheet.
The document covers V3 introduction, differences between V3 and V2, special syntax and usage, common errors and warnings with solutions, common questions, optimization problems, and fixes for known compiler problems.
| Latest compiler version listed | V3.59 |
|---|---|
| Latest IDE version listed | HT-IDE30008.04 |
| Unsupported MCU condition | MP register width less than 8 bits |
| Extended instruction prefix | letter ‘L’ |
V3 does not support MCUs whose MP register width is less than 8 bits.
Use the interrupt attribute form, for example void __attribute((interrupt(0x04))) Int_isr() {}.
The differences are absolute address variables, interrupt syntax and integrated assembler.