Compiling program for old gcc
I have to compile program probcons but there are many errors. In readme autor writes program is compatible with gcc 4.3 but I have only 4.7.2. Is there any way to compile this old program? I don't...
View ArticleCompile an asm bootloader with external c code
I write a boot loader in asm and want to add some compiled C code in my project.I created a test function here:test.c__asm__(".code16\n");void print_str() { __asm__ __volatile__("mov $'A' , %al\n");...
View ArticleIs it possible to compile a X86 program on a jailbroken iOS device?
I have an iPad running iOS 13.5 and it is jailbroken.I installed clang compiler and vim editor on Cydia store, so I can write code with vim and compile the source code with clang. Both compilation and...
View ArticleHow can i use this built-in function __builtin_popcount() in Jupyter...
__builtin_popcount() funtion use in Jupyter notebook
View ArticleDPDK built error with GCC for array bounds
when i install dpdk into my Debian servermake install T=x86_64-native-linux-gccthere will be an error:error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 2 *...
View Articlegcc -o how to name object file
This command gcc file.c -coutputs me thisfile.ohow to run above command so it outputs me object file with specified name for example file.dbg.o ?
View ArticleCheck library built flags or options (-frecord-gcc-switches)
I'd like to check the library under investigation what flags and options were built with? I'm trying to use gcc compiler with option -frecord-gcc-switches to understand on my simple shared library but...
View ArticleReading registers in the GCC using a char pointer
I have recently started learning how to use the inline assembly in C Code and came across an interesting feature where you can specify registers for local variables...
View Articlecould not read symbols: Invalid operation
I keep getting this when compiling :/usr/local/bin/ld: ../../../Extern/lib/libtiff.a(tif_lzma.o): undefined reference to symbol 'lzma_stream_encoder@@XZ_5.0'/usr/local/bin/ld: note:...
View ArticleARM, VFP, floating-point, lazy context switching
I write an operating system for an ARM processor (Cortex-A9). I try to implement lazy context switching of the floating-point registers. The idea behind this is that the floating-point extension is...
View ArticleHeader search paths with gcc using C_INCLUDE_PATH
i'm confused about the following include files(with GCC)i've A.c and B.c in folder AAAand B.h in folder BBBin A.c:#include <stdio.h>#include "B.h"main(){ errPrint();}in B.c:#include...
View ArticleUnable to place breakpoints into code in Xilinx Vitis IDE v2019.2
I have been debugging my application in Eclipse based Xilinx Vitis IDE v2019.2. Now I would like to place breakpoint into custom driver code for custom IP core. In case I do that following error...
View ArticleCan't compile a C program on a Mac after upgrading to Catalina 10.15
There's a previous question Can't compile C program on a Mac after upgrade to Mojave, and the answers to that have covered most of the variations on what goes wrong.Now — as of Monday 2019-10-07 — you...
View ArticleLocal Label Address in GNU GCC Assembely
I'm trying to use some PPC assembly code in C, but I'm having trouble understanding and transposing this particular piece of ASM into the GNU GCC format:... b 1f1: lis p0, HI(2f) ori p0, p0, LO(2f)...
View Articlecreating a docker container from a rootfs
I am dealing with the following issue:A robot has an old Gentoo OS: Linux bob 2.6.33.9-rt31-aldebaran-rt #1 SMP PREEMPT RT Thu Aug 27 21:42:34 CEST 2015The problem:I am trying to build a toolchain for...
View ArticleHaving problem whit split Golang´s code that import C library
I wrote a code that imports the C library and works fine when all it is in one file. But when I split the code into two files, so that the function is in another file, it doesn´t work.I run Windows 10...
View ArticleWhy cant i check if i have included stdlib.h on tdm-gcc compiler?
I'm writing a header file in C and need stdlib.h for it to work. But, when I check if _STDLIB_H is defined, the pre-processor says it's not, even if I include the file. I have tried it on multiple...
View Articleopen62541 (OPC UA) with lwip and freeRTOS on STM32H7 compile problem
I have working system with lwip and freeRTOS on this bord. I would like to add open62541 implementation of OPC UA with single .c and .h files like described...
View ArticleUnderstanding LeakSanitizer outputs
I use AddressSanitizer from g++ on my program, and there are some outputs I have troubles understanding and acting on.I was using g++-4.8.4 before, and I'm pretty sure there was no leak reports, but I...
View ArticleUbuntu - Linking boost.python - Fatal error: pyconfig cannot be found
Having some issues, now I have read the following:hello world python extension in c++ using boost?I have tried installing boost onto my desktop, and, done as the posts suggested in terms of linking. I...
View Article