microsoft / microsoft/vscode-cpptools
Support Compiler of IAR extensions
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Type: Feature Request
Hello! I‘m a vscode user.
Sorry to submit a new issue be similar to existing issues. I use GNU Arm Embedded toolchain before, It works very well on vscode with C++ Intellisense("intelliSenseMode": "gcc-arm", "compilerPath": "xxx/gcc-arm-none-eabi.exe"). Recently, I use vscode as the editor of IAR to develop arm program. And I found that vscode does not support some keywords of ICC(IAR-CC ARM).
define symbol
There are some symbols that can cheat the compiler by defines, such as bit in MCS51:
xxx.c:
bit a = 0;
c_cpp_properties.json:
"defines": [
"bit=bool"
],
other keyword
But there are some keyword that still report errors, such as interrupt in MCS51 or @ in IAR :
static rt_device_t xxx_dev @ ".ccmram";
void Timer_isr(void) interrupt 1
{
//...
}
This code means to define the variable in ".ccmram" area, and define a function for timer interrupt.
user code
I can define a macro #define NVIC(n) interrupt n if __VSCODE__ is not defined. But this only applies to user code, I shouldn't have to modify the firmware library code.
Of course, this doesn't affect programming, and I don't know how does compiler support work. So it's just a suggestion.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con gli esempi IAR nell’issue, inclusi la parola chiave interrupt e la sintassi per il posizionamento di @, e verifica come l’estensione gestisce le estensioni del compilatore. Il lavoro è completato quando il codice firmware IAR può essere analizzato senza diagnosticare errori per queste costruzioni, senza richiedere modifiche alla libreria firmware.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, cpp
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100