#msvc

Last week I was a little annoyed about missing Microsoft C++ Build Tools #MSVC on a system without admin rights. I needed a compiler for building the #python C++ extension I developed a while ago. Annoyed not because I could not ask someone to install it for me, but annoyed because of the lack of compiler choices in this particular case. I have to use the MSVC instead of let's say #g++ which I could easily install via the #MinGW-w64 #conda package myself.

I found out that I can tell #setuptools (the backend build system) via #pip config settings to use a different compiler during build:

A code window with line numbers from 1 to 7 with the following contents:
conda create -n my_env python gxx
conda activate my_env
pip install \
--config-setting=--build-option=build \
--config-setting=--build-option=--compiler \
--config-setting=--build-option=mingw32 \
.
Guillaume Racicotgracicot
2026-01-11

Aaaaaaaand I was right! MSVC does have a bug with parens initialization of aggregate (and static cast!). It won't consider conversion operators for some reason 🫣

godbolt.org/z/WWW99qM5Y

2026-01-05

От PDP-11 до Windows: как кросс-компилировать ретро-код на macOS без машины времени

Гайд по кросс-компиляции для ретро-платформ на macOS с Apple Silicon. Описаны настройка и использование: Open Watcom v2 — для DOS (16/32-бит), OS/2, Windows 3.x/9x/NT, с примерами сборки .com, .exe и функцией для переключения таргетов в shell. Amsterdam Compiler Kit (ACK) — компиляция ANSI C под PDP-11, с запуском крестиков-ноликов на Unix Version 7 в эмуляторе open-simh (включая создание лент, mkfs, restor, mknod). msvc-wine — полноценный MSVC-тулчейн для Windows (x86/x64/arm64) через LLVM Clang и LLD, без MinGW-зависимостей. Дополнительно: тестирование через Wine, DOSBox-X, OrbStack; фиксы для Apple Silicon. Подробные шаги по сборке, установке и примерам. Интересно? Велком внутрь.

habr.com/ru/articles/982928/

#кросскомпиляция #ретрокомпьютинг #PDP11 #Unix_V7 #Apple_Silicon #DOS #ACK #MSVC #Open_Watcom #macos

N-gated Hacker Newsngate
2025-12-25

🚀 Breaking News: Python 3.15 for is rumored to be 15% faster! 🎉 But don't get too excited, it's based on an "experimental" internal version of , which probably means "good luck finding it." 🙃 Meanwhile, are being retracted like it's an Olympic sport. 🥇
fidget-spinner.github.io/posts

2025-12-03

Một script PowerShell mới giúp quản lý và mở các dự án C++ MSVC trong VS Code dễ dàng hơn. Công cụ này cho phép bạn thêm, xóa, liệt kê và chọn dự án, tự động thiết lập môi trường build MSVC và mở thư mục trong VS Code. Tiện lợi cho dev C++!
#Cplusplus #MSVC #VSCode #PowerShell #DeveloperTools #Programming #LapTrinhC #CongCuLapTrinh #PhanMem #KyThuatPhanMem

reddit.com/r/programming/comme

Martin Bishoptoomanysecrets
2025-11-17

1. kernels use / almost exclusively. Clang supports two dialects: mode and mode. Supporting both dialects means the kernel can build and test under more configurations.
2/3

2025-11-03

Давайте писать на Rust для DOS

В этой статье я покажу как получить работающую под DOS программу, написанную на Rust. Начинаем с установки Rust. Даже если он есть системный из пакетов, его недостаточно, так как мы будем (вынужденно) использовать nightly версию. Итак, идём на rustup.rs/, копируем предлагаемую строку и запускаем её в терминале. Чтобы команда заработала возможно потребуется доустановить curl . Имеет смысл выбрать в качестве ветки по-умолчанию nightly . Если вы выбрали не nightly , то нужно будет доустановить nightly тулчейн:

habr.com/ru/articles/962868/

#DOS #msvc #HX #программирование

2025-09-26

I think here I'll provide development realtime updates for #Tenacity. I mean, I've always done so, but I'll probably do it solely from this account from now on, unless people want to see more of this stuff on the main Tenacity account. (Actually, it might be better to do it here anyways because of the higher character limit! :D)

Anyways, #Windows runners are up next. I'm focusing on incorrect #MSVC flag substitution and fixing that up as a part of the precursors PR. Hopefully that'll fix build issues when using (s)ccache. Then, I'll move on to the most challenging part: fixing macOS (I don't have a Mac). Of course, I can always spin up a macOS VM, but #Apple would likely prefer that I don't. Alas, I don't have a Mac, so 🤷

(By the way, if anyone wants to send me a Mac for development purposes then feel free to! I'm always accepting new hardware for whatever purpose too! :D)

Sune Stolborg Vuorelasvuorela@floss.social
2025-08-06

On MSVC, an enum by default is signed.
so an anonymous class enum like

enum { foo, bar, baz
} mFoo : 2;

Is not going to be that useful. #MSVC knows about it but only tells you on /Wall, not /W4.

Maybe #cppcheck could at least gain a check for it ?

#GCC and #clang seems to do the right thing

#cpp

2025-07-16

Язык программирования C, твой путь начинается здесь, самурай

Приветствую! Когда мне сначала просто захотелось, а потом потребовалось и для работы изучить C++, я сильно удивился, что информации касаемо пары C/C++ информации вроде много, но она уж слишком сильно не структурирована и не систематизирована. Одно лишь объяснение указателей мне потребовалось очень много времени искать, потом я понял что такого нет. В интернете есть много объяснений и информации, но это все либо рерайт чужих статей либо просто бессвязный бред где порой кажется что сам человек не проверяет информацию либо просто сам не знает. Да и честно говоря очень мало понятных и рабочих кусков кода с объяснением решения, которое можно было бы протестировать на работоспособность. Поэтому я решил здесь в данном блоге (Habr идеальное место для этого) собрать в кучу как свои мысли так и свой опыт. А также опыт других людей которые также использовали данный инструмент в своей работе или просто как хобби. Также стоит отметить, что на мой взгляд для изучения C++ надо начать именно с C, но применять его врятли получится потому что как бы C не был хорош, все же на фоне C++, для современных задач он не полноценен (но тут я сразу уточню, что технология превосходная и я до сих пор удивляюсь как кто-то смог создать подобный язык, с настолько простым и удобным функционалом, который используется и сейчас, но в современной разработке он не функционален, хотя дальше я опишу сферу применения данного языка программирования).

habr.com/ru/articles/928410/

#C #C++ #GCC #Clang #MSVC #system #lowlevel_programming #lowlevel #system_programming #operating_systems

2025-06-17

C++ для самых маленьких: Введение в программирование на С++. Часть 1

C++ — это язык программирования, который был создан как улучшенная версия языка C. Он появился очень давно (в 1985 году), но до сих пор используется повсеместно: в играх, браузерах, операционных системах, автомобилях и даже в искусственном интеллекте! В этой статье мы установим все инструменты для С++!

habr.com/ru/articles/919330/

#c++ #gcc #g++ #vscode #mingw #msvc #c #compiler

2025-04-22

On another note, I’ve added instruction source location tracking to #ArkScript!

Meaning, we can (finally) have runtime errors that point to the line which threw the error. As well as go up the call tree and display it with the line of each call as well!

However I’m still dueling with #msvc that loves generating weird errors at runtime (and my favorite OS, Windows, using back slashes in path instead of forward slashes…)

#pldev #compiler #cplusplus

Error messages generated by the tests being run on Windows. A lot of « unknown characters » appear (the interrogation point in a rotated square), with the test runner reporting that « weird name here » already exist (three times).

There is also an error saying that some content do not match the expected content. The only difference is a backward slash in place of a forward one. Thanks Windows.
2025-04-10

Today's been a fun ride down weird #MSVC #cpp #compiler land, for some values of "fun".

I'm still flabbergasted that it generates multiple SIMD rounds of packed doubles/singles conversions with a half full xmm register for a seemingly innocuous line of math and a call to std::exp2f. Like, why not use regular math instructions if you want to vectorize with N=1 width? Are these lines really "optimized"?

2025-04-02

New Features in CLion’s Bazel Plugin: Custom Toolchains and Windows Support
#Clang #CLion #News #Tipstricks #Bazel #Gcc #Llvm #Msvc

blog.jetbrains.com/clion/2025/

Microsoft DevBlogsmsftdevblogs@dotnet.social
2025-03-29

we now integrate LLVM updates weekly and have introduced new features like improved memory management and expanded API intercepts.

Adopt ASan in your codebase to catch memory safety issues during continuous integration and testing.

We invite you to download Visual Studio and try ASan.

Your feedback is vital! #MSVC #ASan #VisualStudio #DevCommunity

For more information check: devblogs.microsoft.com/cppblog.

2025-03-27

Основы inline ассемблера для С в Visual Studio (MSVC compiler) x86 компиляции для Windows

Всем привет! я долго искал статью на эту тему, но так как очень много кто использует GNU компилятор или линукс вариант написания, то мне это не подходит, эта статья призвана кратко разобрать основы inline ассемблера для С в MSVC x86 вариации, также стоит отметить, что я буду разбирать все организационные моменты с расчетом на то, что вы уже несколько лет пользуйтесь Visual Studio и C/C++ в частности, хотя бы на уровне джуна-самоучки, коим я и являюсь, поэтому новичкам стоит гуглить некоторые моменты, всем продуктивного изучения! Подробнее

habr.com/ru/articles/894860/

#msvc #c #assembler #gnu #windows #visual_studio #masm #masm32 #x86 #inline_assembler

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst