在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
https://community.idera.com/developer-tools/programming-languages/f/c-libraries/72223/inline-assembly
see line "[srcUTF8], esi"
this one indicates an error (MSBUILD : error E1059: instantiated into assembly here Anyone have an explanation? I'm moving from Visual Studio to CAD Builder but problems like this are many ! Why is this written in assembly to begin with? This can easily be written in C and run just as efficiently, and be easier to management and port between compilers. Votre réponse indique une certaine soumission aux "standards" mais elle à le mérite d'être. Il se trouve que j'aime programmer en assembleur (et ce n'est guère plus long qu'autre chose) et que j'ai des dizaines de routines qui fonctionnent bien, alors avant de passez à un autre compilateur de VS je regardes ce qu'il en est. Quand à penser que du C sera aussi rapide que de l'assembleur, c'est inexact, même si la différence dans ce cas sera faible. Mais j'ai du écrire un solveur il y a quelques années, je vous assure que la version QT, puis C étaient largement distancée par la version en assembleur. Your answer indicates a low submission at "standards" but it exist ! I to like to program in assembler (and it's not much longer than anything else) and I have dozens of routines that work well, so before I switch from VS to another compiler I look at what's going on. Well comes to thinking that C will be as fast as the assembler, it's inaccurate, even if the difference in this case will be small. But I had to write a solver a few years ago, I assure you that the QT version, then C were largely distanced by the assembler version. "instantiated into assembly here" is a Clang error message. C++Builder's Clang-based compilers have caveats with using inline assembly, see Embarcadero's documentation: Differences Between Clang-enhanced C++ Compilers and Previous-Generation C++ Compilers: Inline_Assembly In particular: "Clang-enhanced C++ compilers allow inline assembly with these caveats: You cannot mix assembly with C++ code. http://docwiki.embarcadero.com/RADStudio/Rio/en/Clang-enhanced_C%2B%2B_Compilers http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论