These are public posts tagged with #gcc. You can interact with them if you have an account anywhere in the fediverse.
Apparently there are no good #gcc tools to find unnecessary header includes in #CPP while using ninja/cmake (and NOTE not being the author of the build system)
...
A lot of you guys are #programmers what's the right tool here?
I don't need something that complains about every external include not found, just local symbols without having to recompile everything.
EDIT: Good Answers everyone!
C++ для самых маленьких: Введение в программирование на С++. Часть 1
C++ — это язык программирования, который был создан как улучшенная версия языка C. Он появился очень давно (в 1985 году), но до сих пор используется повсеместно: в играх, браузерах, операционных системах, автомобилях и даже в искусственном интеллекте! В этой статье мы установим все инструменты для С++!
💻 Что такое C++? C++ — это язык программирования,…
ХабрAssigning your copyright to the FSF helps defend the GPL and keep software free. Thank you to Giovanni Turco for assigning your copyright to the FSF! More at: https://u.fsf.org/463 #GCC #CopyrightAssignments
Fabien Sanglard published a blog series on driving C compilers, i.e. running the compiler toolchain to build executable programs:
https://fabiensanglard.net/dc/index.php
More recently Julia Evans @b0rk posted on the related topic of using Make to compile C programs, which nicely complements Fabien's series:
für das System als Ganzes. Wir mussten uns damals das #Linux noch auf 5 1/4“ #Disketten aus dem Internet beziehen. Wir haben es uns per #FTP Diskettenweise runter geladen. Dann gab es verschiedene Diskettensätze. Einige für das Basissystem. Das enthielt nur das notwendigste und den Kernelquellcode. Ein Satz mit #gcc. Kurze Zeit später gab es auch einen Satz mit dem X-System (Waren glaube ich 10 Disketten).
Erste Aktion nach der Installation war dann sich erstmal einen Kernel für das eigene (3/4)
All I want is just a collection of #binutils, #GCC, #llvm+#clang, #glibc and #musl that are "free standing" / relocatable, which I can pack into a #squashfs image to carry around to my various development machines.
You'd think that for something as fundamental as compiler infrastructure with over 60 years of knowledge, the whole bootstrapping and bringup process would have been super streamlined, or at least mostly pain free by now.
Yeah, about that. IYKYK
Оптимизируем C++ шаблоны: от инлайнинга до модулей
Мы рассмотрим, чем опасны шаблоны для проекта на C++ и как минимизировать эти риски. В оптимизации нам помогут инлайн-файлы, явные инстанциации и даже модули из C++20.
https://habr.com/ru/articles/914632/
#c++ #c++20 #gcc #linux #templates #optimization
Введение Шаблоны в С++ опасны для начинающего пользователя…
Хабрhttps://www.europesays.com/2125610/ ASEAN’s multilayered response to the changing economic and geopolitical order #america #ASEAN #China #economics #Front #GCC #geopolitics #Malaysia #Politics #UnitedStates #UnitedStatesOfAmerica #UnitedStatesPolitics #US #USPolitics #USA #UsaPolitics
Does it matter if we are compiling with optimizations off (O0) or optimizations on (O3) if the problem is memory bound? Let’s find out…
#optimizations #performance #instructionlevelparallelism #ilp #compiler #gcc #memorybound
https://johnnysswlab.com/an-optimizing-compiler-doesnt-help-much-with-long-instruction-dependencies/
Does it matter if we are compiling with optimizations…
Johnny's Software Lab@juliavithoria Muy bueno!
#GCC no viene instalado por default en Fedora?
Podrías compartirlo en formato texto usando un pastebin como [1] así la gente puede replicarlo más fácil.
La gente que use #Fedora o distros RPM, claro xD
Visit this link to see the note. Giving the URL to…
Disroot Bin - Encrypted pastebin by PrivateBingcc - main.cpp
日本語 (Japanese): Sharkey/Misskey を Fedora 42 にインストールする方法(FreeBSD 向けの修正付き)
When installing the patched versions of Misskey (Pull Request available) and Sharkey (with changes already applied) on a Fedora 42 environment, you may encounter the following errors:
error: ‘uint8_t’ was not declared in this scope
error: ‘state’ was not declared in this scope
These issues seem to stem from the version of GCC being used (Reference). Below, I will outline how to resolve these problems on Fedora 42.
Step 1: Install Dependencies
First, as indicated in the wiki, install the necessary dependencies:
sudo dnf install cairo-devel libjpeg-turbo-devel pango-devel giflib-devel pixman-devel
Step 2: Compile GCC/G++
Using the default GCC bundled with Fedora may lead to failed installations when running pnpm install
(as of May 27, 2025). To avoid this issue, we need to compile and use a other version of GCC/G++.
Start by downloading the GCC source code using wget, then extract it and navigate to the source directory:
wget https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.3.0/gcc-13.3.0.tar.gz
tar xzf gcc-13.3.0.tar.gz
cd gcc-13.3.0
mkdir build
cd build
Next, install the dependencies required for building GCC/G++:
sudo dnf group install development-tools
sudo dnf install mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel isl-devel libgphobos-static
Now, configure the build (Flags should be changed as needed.):
../configure --disable-bootstrap --prefix=/usr --program-suffix=-13.3 --mandir=/usr/share/man --enable-languages=c,c++
After configuration, compile GCC with the following command:
make
To utilize multiple cores for a faster build, use the -j
flag:
make -j6
Once the compilation is complete, install the new GCC version:
sudo make install
You can verify the installation of the compiled GCC using:
gcc-13.3 -v
Step 3: Modify Installation Command for Misskey/Sharkey
Finally, to successfully install Sharkey and Misskey, modify the installation command as follows:
CXX=/usr/sbin/g++-13.3 CC=/usr/sbin/gcc-13.3 pnpm install --frozen-lockfile
With these adjustments, you should be able to install Misskey and Sharkey without any issues. Enjoy Fediverse!
*I have used LLM to some extent to modify the text to make it more natural. I checked to some extent before post, but please let us know if there are any unnatural parts.
References
この記事では、Fedora 42環境でMisskeyおよびSharkeyのパッチ適用版をインストールする際に発生する可能性のあるコンパイルエラーの解決策を解説します。エラーの原因は、FedoraにバンドルされているデフォルトのGCCのバージョンにあると考えられます。解決策として、まず必要な依存関係をインストールし、次にGCC/G++の新しいバージョンをコンパイルしてインストールします。最後に、Misskey/Sharkeyのインストールコマンドを修正し、新しいGCCのパスを指定することで、インストールを成功させます。この記事を読むことで、Fedora…
Hackers' PubРецепт фасолей: как я отреверсил бюджетный кнопочный телефон, пропатчил и научил запускать нативные программы на C
Осторожно : в рамках статьи мы во всех деталях исследуем прошивку бюджетного кнопочника, разберемся в её архитектуре и напишем загрузчик программ с MicroSD-флэшки. При этом я постараюсь объяснить всё максимально простым и доступным языком! Недавно я познакомился с легендой форума allsiemens.ru — Ilya_ZX , который известен своим огромным вкладом в тему реверса и моддинга телефонов на платформе E-Gold и S-Gold. Илья поведал мне интересную историю о том, как в начале нулевых, будучи студентом, поспорил с одногруппником, сможет ли он добавить «змейку» в свой Siemens A60. И спор он этот выиграл, путем бессонных ночей ковыряния прошивки в IDA Pro! Я подумал — «а чем я хуже?». Взял в руки кнопочный телефон на платформе Spreadtrum, сдампил прошивку и загрузил в дизассемблер... Если вам интересен подробный процесс реверса различных модулей прошивки, как они взаимодействуют между собой, как я написал программу для применения патчей к фуллфлэшу и, собственно, бинлоадер с первой программой — жду вас под катом!
https://habr.com/ru/companies/timeweb/articles/910498/
#bodyawm_ништячки #телефоны #смартфоны #spreadtrum #реверсинжиниринг #моддинг #патчи #Elf #GCC #timeweb_статьи
Running DOOM on an Atari ST - If you grew up with a beige Atari ST on your desk and a faint feeling of being lef... - https://hackaday.com/2025/05/22/running-doom-on-an-atari-st/ #retrocomputing #computerhacks #classichacks #atarist #games #atari #doom #gcc
If you grew up with a beige Atari ST on your desk and…
HackadayI wonder if the huge performance difference between #Ubuntu 25.04 and #Fedora 42 is caused by cppc_cpufreq, by #GCC 15 or just compiler flags?
https://www.phoronix.com/review/ubuntu2504-fedora42-ampere
Both are running Linux 6.14, OpenJDK 21 and Python 3.13. Someone in Fedora should definitely investigate the root cause of this 25-30% gap.
This is good
:
“A Leap Year Check In Three Instructions”, Falk Hüffner (https://hueffner.de/falk/blog/a-leap-year-check-in-three-instructions.html).
Via HN: https://news.ycombinator.com/item?id=43999748
On Lobsters: https://lobste.rs/s/ybjgex/leap_year_check_three_instructions
#Optimization #Assembly #Compilers #GCC #Math #LeapYear #GregorianCalendar #BitTwiddling #Speed
How to test for leap years (until year 102499) in the…
hueffner.deОсновы по GNU Make
GNU Make - это консольная утилита, которая запускает другие консольные утилиты в желаемой последовательности согласно скрипту. Только и всего. В этом тексте я показал, как можно организовать самостоятельно написанные make скрипты для микроконтроллерных проектов.
https://habr.com/ru/articles/748162/
#GNU_make #make #devops #MCU #GCC #linker #GNU #build_system #C
Chi come me usa ancora un vecchio PC con scheda nVidia paleozoica sarà incappato probabilmente in una incompatibilità tra il driver versione 390 e gcc 15 e, di conseguenza, nell'impossibilità a compilare il driver per il kernel. Qui spiego come ho risolto in attesa della patch ufficiale.
#arch #arch_linux #kernel #gcc #gcc15 #nvidia #nvidia390
https://www.aldolat.it/posts/2025/arch-linux-kernel-614-nvidia-driver-390/
Come ho risolto un problema di compilazione del driver…
www.aldolat.it