#clang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #clang, aggregated by home.social.
-
Виды связываний (external, internal, no linkage) для самых маленьких
Если вы когда-нибудь собирали проекты на C++, то практически наверняка получали ошибку от линковщика формата: /usr/bin/ld: /tmp/ccYa2eaO.o: в функции «foo()»: foo.cpp:(.text+0x0): повторное определение «foo()»; /tmp/ccKEs5I7.o:main.cpp:(.text+0x0): здесь первое определение collect2: error: ld returned 1 exit status Опытным C++ разработчикам эта проблема известна как ODR (One Definition Rule). Но корень этой ошибки выходит далеко за рамки «используй inline в .hpp » и «не определяй ничего в .hpp ». В этой небольшой статье мы попробуем разобраться, как наши объектные файлы, которые мы создаем, видит линковщик и другие единицы трансляции, и при чём здесь таблица символов.
-
CLion’s Classic Engine Unbundled: What’s Next
#Clang #CLion #News #Clionnova -
CLion’s Classic Engine Unbundled: What’s Next
#Clang #CLion #News #Clionnova -
I'm very confused because I was seeing a memory leak on #libcurl on #macos :mac: but not on #linux :linux:
I reduced the repro to a very simple app, and turns out the problem was that the *Address Sanitizer itself* leaks memory in the mac version???Happens with both #Clang and #GCC, so maybe this is actually a #LibreSSL problem that #OpenSSL doesn't have?
Anyway, it's way past my bedtime, so I'm just leaving this mini-rant here in case anyone that knows about this sees it. 🤞😴
-
Things I've learned today:
- Valgrind does not support AVX512 instructions. That was an adventure because I was writing purposefully bad code at the time...
- However, changed strategies and used `clang` with the `fsanitize=address,undefined` option which seems to work perfectly fine. -
Things I've learned today:
- Valgrind does not support AVX512 instructions. That was an adventure because I was writing purposefully bad code at the time...
- However, changed strategies and used `clang` with the `fsanitize=address,undefined` option which seems to work perfectly fine. -
Neither GCC nor Clang are compliant with standard C++
-
Neither GCC nor Clang are compliant with standard C++
-
Парсер C++ на своем DSL: попытка обогнать компилятор
Проекты растут. Кодовая база растёт. Время компиляции растёт вместе с ними и переходит все границы разумного. В какой-то момент я решил: а что если попробовать написать свой компилятор? Пока только для разработки, не для прода . На замену Clang++/G++/CL.EXE. Эта статья — о первом шаге на этом пути. О парсере C++, который я написал на своём DSL специально сделанном для этого изначально. Матчинг запущен? Кооперация предложена?
https://habr.com/ru/articles/1058150/
#С++ #компиляторы #Парсеры #генераторы_парсеров #разработка #алгоритмы #open_source #C #g++ #clang
-
Introducing fmetrics: Fast Image & Video Fidelity Metrics in C, Zig
-
Introducing fmetrics: Fast Image & Video Fidelity Metrics in C, Zig
-
🚀 Android NDK r30 Beta 2 is here!
Highlights:
✅ LLVM updated to clang-r574158b
🐛 Compiler & LTO fixes
🔍 Better LLDB debugging
⚡ Improved ARM dot product code generationDetails: https://github.com/android/ndk/releases/tag/r30-beta2
-
Some of our #OpenBSD anti-ROP #research ended up on lobsters: https://lobste.rs/s/xclcel/final_return_for_openbsd_anti_return
#BSD #FreeBSD #NetBSD #DragonFlyBSD #Linux #Unix #Illumos #compiler #compilers #GCC #LLVM #Clang
-
Some of our #OpenBSD anti-ROP #research ended up on lobsters: https://lobste.rs/s/xclcel/final_return_for_openbsd_anti_return
#BSD #FreeBSD #NetBSD #DragonFlyBSD #Linux #Unix #Illumos #compiler #compilers #GCC #LLVM #Clang
-
Why it required a compiler-specific language extension (although thankfully all the compilers that matter, ie #gcc and #clang, have converged on the same extension) is beyond me. Being able to detect an overflow is such an obviously useful thing to do that it was implemented in the very first microprocessor, the #Intel4004. I used it heavily in #assembler code on the #Z80 in the 1980s. A mechanism for making use of that flag should have been in the C standard for *decades* by this point. 4/4
-
Why it required a compiler-specific language extension (although thankfully all the compilers that matter, ie #gcc and #clang, have converged on the same extension) is beyond me. Being able to detect an overflow is such an obviously useful thing to do that it was implemented in the very first microprocessor, the #Intel4004. I used it heavily in #assembler code on the #Z80 in the 1980s. A mechanism for making use of that flag should have been in the C standard for *decades* by this point. 4/4
-
I just found an error in my printed edition of "Pointers on C":
The Programs 5.1 (page 96) & 5.2 (page 100) use a left shift, when it should be a right shift.
(And this error has been corrected in the PDF version that I have)
However, I really like the book overall! It was a great recommendation, and I enjoy reading it so far! 🙂
-
I just found an error in my printed edition of "Pointers on C":
The Programs 5.1 (page 96) & 5.2 (page 100) use a left shift, when it should be a right shift.
(And this error has been corrected in the PDF version that I have)
However, I really like the book overall! It was a great recommendation, and I enjoy reading it so far! 🙂
-
Quick and dirty VSCode project for WSL/Ubuntu for getting started with coding in #C for #C64 :
https://codeberg.org/csepp/llvm-mos-sampleMade for my partner and generally for people who might be new to C and for some reason want to learn it while they also learn Commodore 64 programming. She hasn't tried it yet, so I can't vouch for the followability of the docs.
Uses #LLVMMOS / #Clang / #clangd to make things a bit more ergonomic. I know about CC65 and its debug info and VICE support was tempting, but better code navigation and static analysis IMHO wins.
PRs that set up support for other IDEs are welcome, as long as they don't break VSCode.
cc: #theWorkshop
-
Quick and dirty VSCode project for WSL/Ubuntu for getting started with coding in #C for #C64 :
https://codeberg.org/csepp/llvm-mos-sampleMade for my partner and generally for people who might be new to C and for some reason want to learn it while they also learn Commodore 64 programming. She hasn't tried it yet, so I can't vouch for the followability of the docs.
Uses #LLVMMOS / #Clang / #clangd to make things a bit more ergonomic. I know about CC65 and its debug info and VICE support was tempting, but better code navigation and static analysis IMHO wins.
PRs that set up support for other IDEs are welcome, as long as they don't break VSCode.
cc: #theWorkshop
-
Improving Embedded Software Quality With Parasoft C/C++test, CLion, and AI
#Clang #CLion #Livestreams #Codeanalysis #Embedded #Webinarshttps://blog.jetbrains.com/clion/2026/07/improving-embedded-software-quality-parasoft-clion-ai/
-
Improving Embedded Software Quality With Parasoft C/C++test, CLion, and AI
#Clang #CLion #Livestreams #Codeanalysis #Embedded #Webinarshttps://blog.jetbrains.com/clion/2026/07/improving-embedded-software-quality-parasoft-clion-ai/
-
[$] Hardening the kernel with allocation tokens and bootpatch-SLR
There is a lot of work going into eliminating exploitable bugs from the kernel and preventing the addition of new ones. Even if this work is maximally successful, though, there is [...]
https://lwn.net/Articles/1078699/ #LWN #Linux #kernel #GCC #LLVM #Clang #Git
-
[$] Hardening the kernel with allocation tokens and bootpatch-SLR
There is a lot of work going into eliminating exploitable bugs from the kernel and preventing the addition of new ones. Even if this work is maximally successful, though, there is [...]
https://lwn.net/Articles/1078699/ #LWN #Linux #kernel #GCC #LLVM #Clang #Git
-
[$] A helper library for BPF arenas
BPF arenas are areas of memory (potentially shared with user space) where programs have free reign to build their own data structures, unburdened by the verifier's bounds checks. M [...]
https://lwn.net/Articles/1078526/ #LWN #Linux #kernel #GCC #Clang #Git #BPF #LSFMMBPF
-
[$] A helper library for BPF arenas
BPF arenas are areas of memory (potentially shared with user space) where programs have free reign to build their own data structures, unburdened by the verifier's bounds checks. M [...]
https://lwn.net/Articles/1078526/ #LWN #Linux #kernel #GCC #Clang #Git #BPF #LSFMMBPF
-
I am coding in C on an Android tablet with Termux. Can I compile for MacOS?
-
It is not difficult to reproduce most of the functionality in FAISS with hand rolled <2k LOC #OpenMP device code, with equivalent performance if one were to use a reasonably modern #clang compiler (I have blacklisted #gcc for offloading). Benefit: one does not need a full conda environment
-
Using #sdl2 I finally got my sound working for my PAC-MAN clone in #clang Most of my audio code is pretty much lifted and shifted from LazyFoo (see the link below), I got some .wav files from Sprite Resources and I got them coded up into my game project. I think I have almost all the bones on the skeleton of the project. I just need to get the scoring, and the scene transitions and I'll be all good. As always my code is in my Git repository.
[https://lazyfoo.net/tutorials/SDL/21_sound_effects_and_music/index.php]
-
[$] The first half of the 7.2 merge window
The 7.2 merge window started with the 7.1 kernel release on June 14. As of this writing, just over 7,000 non-merge changesets have been pulled into the mainline for the next kerne [...]
https://lwn.net/Articles/1078068/ #LWN #Linux #kernel #LLVM #Clang #Rust #Git #XFS #BPF
-
[$] The first half of the 7.2 merge window
The 7.2 merge window started with the 7.1 kernel release on June 14. As of this writing, just over 7,000 non-merge changesets have been pulled into the mainline for the next kerne [...]
https://lwn.net/Articles/1078068/ #LWN #Linux #kernel #LLVM #Clang #Rust #Git #XFS #BPF
-
Your JetBrains IDE Expertise, Now on LinkedIn
#Clang #CLion #Newshttps://blog.jetbrains.com/blog/2026/06/17/your-jetbrains-ide-expertise-now-on-linkedin/
-
Your JetBrains IDE Expertise, Now on LinkedIn
#Clang #CLion #Newshttps://blog.jetbrains.com/blog/2026/06/17/your-jetbrains-ide-expertise-now-on-linkedin/
-
My employer seems to hire again: jobs.ifm.com
(If you name me during your application, I get a small bonus)
#clang #cpp #csharp #microcontroller #frontend #softwaredevelopment #software #softwareengineering #fedihire #fedijobs
-
My employer seems to hire again: jobs.ifm.com
(If you name me during your application, I get a small bonus)
#clang #cpp #csharp #microcontroller #frontend #softwaredevelopment #software #softwareengineering #fedihire #fedijobs
-
Modern C++ Support in CLion: What’s New
#Clang #CLion #News #Tipstricks #Clionnova #Codeanalysis #Constexpr #Constexprdebugger #Cpp26 #Gcchttps://blog.jetbrains.com/clion/2026/06/modern-cpp-support/
-
Modern C++ Support in CLion: What’s New
#Clang #CLion #News #Tipstricks #Clionnova #Codeanalysis #Constexpr #Constexprdebugger #Cpp26 #Gcchttps://blog.jetbrains.com/clion/2026/06/modern-cpp-support/
-
[Перевод] Модули C++20 — как я с ними намучился
В стандарте C++20 было представлено множество нововведений, и одним из наиболее крупных и долгожданных в их числе являлись модули. Теперь, когда с тех пор минуло около шести лет, то воодушевление сменилось здоровым цинизмом. Так, авторы сайта Are We Modules Yet прогнозируют, что поддержка модулей во всех библиотеках будет обеспечена к 1 мая 2167 года, а на Reddit не проходит и двух недель, как возникает очередной тред на тему: «Ну что, ими уже можно пользоваться»? (спойлер: нет). Моя собственная одиссея по работе с модулями началась с того, как я в очередной раз взялся переписывать мою воксельную игру . Насколько же слабо я представлял, во что ввязываюсь.
-
Why does the compiler understand ASCII by default?
https://piefed.blahaj.zone/c/c_lang/p/804353/why-does-the-compiler-understand-ascii-by-default
-
llvm/clang(1)/lld(1) updated to version 22.1.6 https://undeadly.org/cgi?action=article;sid=20260603065856 #openbsd #llvm #clang #compilers #c #programming #development #freesoftware #libresoftware