Cross-compiling source code for MIPS32 target
I have source code pack which includes eCos source, GSS-3.2.1 compiler and and GCC-toolchain. I want to compile source code for MIPS32 target CPU. The host PC is Ubuntu Linux x86/64. The 'Readme' file...
View Article.in'ig.status: error: cannot find input file: `Makefile
I'm new to GNU and I've been trying to compile a package using Autotools on Mac. After executing the command ./configure, I get the following:checking for a BSD-compatible install... /usr/bin/install...
View ArticleWhy does GCC saying that I attempt to modify the linkage of a variable at...
I have this code snippet here:static double a; // #1void foo (void) { int a = 0; // #2 { // needs to be in its own block. extern double a; // #3 // refers to the file scope object. }}which GCC complain...
View ArticleCannot compile, build c code using ubuntu [duplicate]
can anyone tell me why I cannot compile my code? I know the program is working because I had it working on a different machine but I want to run it on Ubuntu.
View ArticleAdding GCC Attributes on external library functions
I am writing am embedded program for a Cortex M0, compiled with GCC. For power reasons, the main program loop is kept in RAM and the flash is turned off after setup.We have a section declared in the...
View Articlegcc output on cygwin using stack space outside stack frame
I was looking at the assembly output of 'objdump -S' and noticed something strange. This was on cygwin/x86_64 v. 3.1.5 with gcc 9.3.0 on Windows 10.Here is the assembly output of a particular function...
View Articlec++ / g++ - Error: Unknown pseudo-op: `. loc'
I am trying to configure my computer to learn C++.I have errors and warnings once I run gcc from the terminal to call hello.cpp. C:\Users\Mathieu>gcc -g hello.cpp -o hello -lmI am using a Windows...
View ArticleHow to input * as argument int command line? [duplicate]
I have a question about c. Here is my code, simply print all command line arguments.#include <stdio.h>int main(int argc, char *argv[]){ int i; for(i=0; i< argc; i++) printf("argv[%d]:\t%s\n",...
View Articlefatal error: Python.h: No such file or directory
I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below:gcc -Wall utilsmodule.c -o UtilcAfter executing the command, I get...
View ArticleHow do I install mod_perl using cpan for Apache httpd 2.4.41 (xampp) on windows?
I am trying to install a CPAN package (Apache::MP3), for which it requires a number of prerequisites including mod_perl-2.0.11 on Perl and Apache. According to previous question / answer, I may need...
View ArticleNeed makefile to build openSSL for GCC using cygwin
I want to try out if my code for certificate verification works. I am using NetBeans IDE to try this out. I need makefile to build openSSL for GCC using cygwin. If anyone can direct me to some...
View Articleinclude botan 2 in compilation
i try include some botan header in compilation process#include <botan/rng.h>#include <botan/auto_rng.h>#include <botan/cipher_mode.h>#include <botan/hex.h>#include...
View ArticleWant ${workspaceFolder} to emit forward slashes on Windows?
I'm configuring a VSCode task in tasks.json, and I need to pass the ${workspaceFolder} to a 'make' command, however it needs to be forward slashes, not back slashes.{"version": "2.0.0","echoCommand":...
View ArticleCompilers for mpSoC
I am currently studying/working on arm processors and I came across their big.LITTLE architecture that uses Multiple processors for more efficiencyI've worked with compilers too and I was wondering do...
View ArticleDisable command-line warnings in gcc
When using gcc, specifically gfortran, there are many options to enable/disable different types of warnings, but as far as I can see they all relate to the language and source code being compiled. Is...
View ArticleHow do I use "unity" to unit test C code on Mac (Lion)?
Let me start out by saying that I'm not a C developer and I know very little about actually writing real world C code. I've been doing some research to find a xUnit framework that I can use to write...
View ArticleHow to Compile mingw-w64-crt
I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc)I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0Inside of my MSYS2 installation...
View ArticleWhy use a bitwise not in MIPS instead of using exactly value?
I'm trying to learn MIPS assembly, but I'm a bit confused about an example of MIPS assembly I have found.#Socket Domain - AF_INET (2)li $t4, 0xFFFFFFFD #-3not $a0, $t4#Socket Type - SOCK_STREAM (2 for...
View ArticleSingle-threaded build for specific object file
I work on a very large C++ project that takes 20-30 minutes to fully build with all cores enabled. The problem is that there are some very specific source files that take up an enormous amount of...
View ArticleDevkitARM, white screen on emulator If I use a for loop in the code?
This Code works great and outputs the pixels as expected:int main(){ *(unsigned int *)0x04000000 = 0x0403; unsigned short *Screen = (unsigned short *)0x06000000; Screen[120 + 80 * 240] = 0x001F;...
View Article