151 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
112
views
customizing the gcc compiler to add a built-in preprocessor macro [closed]
I am trying to customize a particular release of gcc (gcc 11.4.0) to make a small change which I need to share with some other developers on github. To this end, I need to fork gcc to add a pre-...
2
votes
0
answers
33
views
How to produce backtraces from an I/O hooking preload library?
I am creating a shared library that overrides the open(2) standard routine. Its purpose is to log all uses of this API in the program under test,
LD_PRELOAD=libiohook.so ./test
And produce useful ...
0
votes
1
answer
141
views
renaming .data to .rodata using objcopy fills output with zeros
Following this helpful guide, I am using objcopy to embed a large data file in my code, like so:
arm-none-eabi-objcopy -I binary -O elf32-littlearm "raw_data.bin" "raw_data.o"
...
1
vote
0
answers
60
views
Can GCC use LTO to optimize MIPS load/store instruction pairs for linker-defined addresses that are close together
Problem Statement
Assume 32-bit MIPS I, and code written in C for an embedded system.
When loading from an externally defined variable (extern int myVar;) that comes from a symbol defined in a linker ...
1
vote
0
answers
162
views
Self build toolchains for RISC-V lacking correct libc
I'm trying to bootstrap compile the toolchains for Vortex, which is an open source GPGPU based on RISC-V ISA. I followed the README.vortex in the pocl source file pulled from https://github.com/...
0
votes
1
answer
708
views
collect2: fatal error: cannot find ‘ld’ compilation terminated. , binutils installed
I had been working on generation of shared libraries, while installing linpack i accidentally replaced cp linpack-fpm/lib/liblinpack.a /usr/bin/ld , I had tried referring to various solutions like ...
0
votes
0
answers
822
views
Running QEMU with support for RISC-V Vector Extensions
I am doing research for my thesis on a topic that requires running QEMU with support for the SVE format. My issue is that I cannot figure out how to find the matching versions of the various tools ...
0
votes
1
answer
3k
views
toolchains for cross-compilation of 32bit ARMv7-a platform
I need to cross compile a C++ project for a 32bit ARMv7-a target platform. Could someone please let me know where from it would be possible to download toolchains for this cross compilation?
So far, ...
0
votes
1
answer
32
views
(make) Recipes breaks after definding PATH
I am trying to automate the building of my toolchain, however every time I set my PATH using a recipe, it breaks the future recipes to ignore the prefix of @ and passes all commands after that ...
4
votes
1
answer
822
views
Where is the source code from the WCH RISC-V toolchain?
WCH, the company behind the famous 10-cent RISC-V microcontroller, has based its RISC-V toolchain on the xPack builds from Liviu Ionescu:
https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/...
0
votes
0
answers
1k
views
Error: unrecognized opcode `mul a0,t4,t5', extension `m' or `zmmul' required
I'm trying to compile RISC-V assembly code to object file. I've built riscv-gnu-toolchain, selecting newlib, architecture rv32imac and abi ilp32.
However, when I try to compile assembly code with ...
1
vote
1
answer
338
views
Inconsistent Binary Output When Building STM32CubeIDE Project on Linux and Windows
I am facing an issue where the binary output of my STM32CubeIDE project built on Linux and Windows is inconsistent. I have installed STM32CubeIDE Version 1.6.1 and the fixed Toolchain: GNU Tools for ...
1
vote
1
answer
419
views
I can't add custom instructions to RISC-V GNU GCC
I want to add custom instructions to riscv64-gnu-gcc. I added the following code to riscv-opc.c and riscv-opc.h while referring to the following sites. I am getting an error for some reason. Why?
...
0
votes
1
answer
1k
views
Use Makefile and sdcc to build a perfect automation for MCS-51 development
Since sdcc have some limitations, like compiling one file at a time, I've tried hard to write a Makefile to perfect the automation of MCS-51 development, which have some requirements:
Source file (.c)...
user avatar
user19681631
1
vote
1
answer
5k
views
Downloading gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu from source, failed building libc
I am currently taking this course from Coursera about Linux system programming, and during assignment 2, I was required to download the cross compiler toolchain, as stated in the title, from source. ...