You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
如何让 VSCODE cpptools 支持 C51 (How to make VSCODE cpptools support C51) #1821
It doesn't look like valid syntax. Is "interrupt" supposed to be an attribute? You can edit c_cpp_properties.json and add "interrupt=" and "INT_VECTOR_T0=" to the "defines" array.
Can you tell me what sfr and sbit are? Those are not types I recognize.
Activity
bobbrow commentedon Apr 12, 2018
It doesn't look like valid syntax. Is "interrupt" supposed to be an attribute? You can edit c_cpp_properties.json and add
"interrupt="and"INT_VECTOR_T0="to the"defines"array.Can you tell me what
sfrandsbitare? Those are not types I recognize.VSCODE-C51 commentedon Apr 13, 2018
interrupt=加入 "defines" 可以的,但"INT_VECTOR_T0="还是不行。( interrupt is OK,but
"INT_VECTOR_T0="not support.)sfr和sbit已经在 "defines" 中,所以不显示错误。(Because it was added before, so no error is displayed.)
[-]如何让 VSCODE cpptools 支持 C51[/-][+]如何让 VSCODE cpptools 支持 C51 (How to make VSCODE cpptools support C51)[/+]VSCODE-C51 commentedon Apr 13, 2018
Thank you for replying me. Bob Brown (@bobbrow)
Sorry, My English is poor, but I will study hard.
bobbrow commentedon Apr 13, 2018
I should have noticed sooner. C51 has some language extensions that our vscode extension does not support. I found it here: http://www.keil.com/support/man/docs/c51/c51_le_funcdecls.htm
Does this compile for you in C51? It is not valid syntax in C.
VSCODE-C51 commentedon Apr 14, 2018
Thank you.
I used Keil compiled C51 Code.
bobbrow commentedon Apr 16, 2018
Unfortunately, we have no plans to support C51 extensions at this time.
heartacker commentedon Jun 29, 2020
FYI, this
keil assistantwill be helpful for c51,https://marketplace.visualstudio.com/items?itemName=CL.keil-assistant