<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 16 janv. 2019 à 12:21, Guillermo Polito <<a href="mailto:guillermopolito@gmail.com">guillermopolito@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I've tested using the volatile keyword in all variables in the function and the problem is still there.</div><div>So while I get some time to look at the asm outputs I've issued a PR with the discussed solution in here: <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353</a></div><div><br></div><div>@Nicolas, I was able to compile and debug win64 almost out of the box. However, I could not make the visual studio code debugging extension work for the 32bit version.<br></div><div>Where you compiling on clang with just the makefiles or you have used visual studio for that?</div><div>Also, could you share your visual studio project files? I'd like to try debugging with it :)</div><div><br></div><div>Tx all,</div><div>Guille</div><br></div></div></blockquote><div><br></div><div>Hi Guile,</div><div>Sure, I can give you the visual studio project files, just unzip the build.msvc under opensmalltalk-vm root dir.</div><div>But they are not of great value, because they are configured for MSVC compiler., 64bits and Squeak (less dependencies than Pharo...)<br></div><div>And despite the entry being marked as fixed, MSVC still suffer from this preprocessor bug<br></div><div><a href="https://developercommunity.visualstudio.com/content/problem/62402/vc-codegenerationbug-when-compiling-smalltalk-vm.html?childToView=398928#comment-398928">https://developercommunity.visualstudio.com/content/problem/62402/vc-codegenerationbug-when-compiling-smalltalk-vm.html?childToView=398928#comment-398928</a></div><div>I cannot test MSVC code generation yet, just use the IDE for navigating in code, and reviewing compiler warnings so far.</div><div>Also, I have not maintained the 32bit version, maybe I have an obsolete one in the branch that I used for the bug report. No time to dig...<br></div><div><br></div><div>The bug can be easily produced with minheadless I presume, so isn't using CMake for generating a VS or VSC project an option?</div><div>I did this old style cmd for 64bits MSVC backend:</div><div><br></div><div>set PATH=%PATH%C:\Program Files\CMake\Bin;<br>set PATH=%PATH%C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;<br>cmake ../../../.. -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE="debug" -DPHARO_BRANDING=On -DSPUR_OBJECT_MODEL=On -DCOG_JIT=On</div><div><br></div><div>But I'm quite sure that we can just use the VSC UI to import the CMake list like shown here:<br></div><div><div><a href="https://www.40tude.fr/blog/compile-cpp-code-with-vscode-clang/">https://www.40tude.fr/blog/compile-cpp-code-with-vscode-clang/</a></div><div><br></div><div>I've not played much with VSC, maybe it's time to inquire...<br></div></div><div><br></div><div><br></div></div></div></div></div></div>