Where are these useless Assembly lines come from? [duplicate]
I started to learn Assembly so I use the command gcc -S file.c to get an Assembly version of my C code.Everything is working fine but I noticed that when I put a simple code, for example:void...
View ArticleCan I keep my existing C files when moving from GCC 3.4.3 to GCC 8.2?
I'm standing up a new architectural stack, and in the old (current-state) stack I'm using GCC 3.4.3 for my C Files. Since I'm updating to a MUCH newer OS, wondered if I could continue to use my...
View ArticleImplicitly-declared boost::iostreams::mapped_file_source is deprecated
I'm defining a struct as follows:struct memory_dump { filesystem::path path; boost::iostreams::mapped_file_source mapped_file; memory_dump_type type; long long int offset; }; However, gcc generates the...
View ArticleIs there a gfortran equivalent to gcc's __attribute__((section("name")))?
I am using the nestedvm package, which includes a patched Gnu gcc compiler. For this package, callable user methods/functions have to annotated with __attribute__((section(".text"))), as shown in the C...
View ArticleHow do I get rid of the following sign-conversion warning?
I am getting the following warning whenever the function initSetArray() is called :error: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]...
View ArticleProblem installing R package "ld: warning: directory not found for option "
I'm trying to install the package gradientForest in R by using install.packages("gradientForest", repos="http://R-Forge.R-project.org") And I'm getting this error ld: warning: directory not found for...
View ArticleLinux C IO question: ctrl+D once or twice? [duplicate]
test1.c#include <stdio.h> int main(void) { int ch; FILE *fp; fp = fopen("file1.txt", "w"); while ((ch = fgetc(stdin)) != EOF) { fputc(ch, fp); } printf("\n"); return 0; } test2.c#include...
View Article32b multiplication in 8b uC with avr-g++ vs 32b multiplication on X86 with gcc
PROBLEM:I'm doing a fixed point c++ class to perform some closed loop control system on an 8b microcontroller. I wrote a C++ class to encapsulate the PID and tested the algorithm on an X86 desktop with...
View ArticleDo we have C++20 ranges library in GCC 9?
Do we have support for C++20 ranges library in the newly released GCC 9?I copied the example code below for ranges library from: https://en.cppreference.com/w/cpp/ranges#include <vector> #include...
View ArticleText in cmd changing color after compile
I'm using gcc version 8.2.0 (MinGW.org GCC-8.2.0-5). If there is any error in program automatically the text color of the cmd changes and is not at all visible!...
View Article“cc: command not found” when running make for libgcrypt on windows 10
G'day all. Just to preface this, I'm not an experienced programmer, so I might not use the correct jargon.I'm in the process of installing GnuPG 2.2.19 on a Windows 10 machine (build no. 18363.628). I...
View ArticleWhat part of elf file goes in to flash stm32 [closed]
i am wondering what part of elf file goes in to flash of mcu. Section Headers: [Nr] Name Type Addr Off Size ES Lk Inf Al Flags [ 0] NULL 00000000 000000 000000 00 0 0 0 [00000000]: [ 1] .isr_vector...
View Articleexe file exits, nasm program working fine
I've got problem, I can compile these programs:assembly program;WZOR NA PI: 4 (1 - 1/3 + 1/5 - 1/7 + 1/9...) section .text use32 global _liczbae _liczbae: ; WZOR: e = 1 + (1^2/2!) + (1^3/3!) + (1^4/4!)...
View ArticleError while installing ejabberd from Source (Something related to GCC & Cygwin)
I'm getting this error when i try to build Ejabbed from source on my Windows Server 2019 system with Cyginx$ make install C:\cygwin64\home\erl10.2\erts-10.2\bin\escript.exe rebar configure-deps ==>...
View ArticleBuilding GCC: Is there a way to only build cpp?
I am attempting to build GCC however what I really want is only cpp.Is there a way to build cpp on its own?
View ArticleRuby gem installation problem on Ubuntu 16.04
I have a problem installing a Rubygem pdfbeads on my Ubuntu 16.04 and wonder if anyone could help. I never used or ran ruby before, but I needed this gem as it is required within a DJVU-to-PDF file...
View ArticleIs it possible to make a GUI application in Linux using GCC by built-in-gcc...
I want to make an app on Linux using GCC and C language. I'v a question and that's it:How I make a GUI app in Linux using GCC with libraries which are included in GCC compiler? I don't interested in...
View ArticleGetting fatal error when trying to compile C++ program
When I try to compile any C++ program I get the following error:In file included from /usr/local/include/c++/7.1.0/bits/postypes.h:40:0, from /usr/local/include/c++/7.1.0/iosfwd:40, from...
View ArticleReboot loop when enabling interrupts with sti
Whenever I try to enable interrupts using the sti command, the emulator instantly reboots. I am executing the following code in protected mode on bootup:void* idt = (void*) 0x00000; struct { uint16_t...
View ArticleReturn value of std::filesystem::create_directories() on paths with trailing...
GCC (10.0.1) and Clang (11.0.0)/MSVC (VS 16.4.3) show different behavior concerning std::filesystem::create_directories() when a non-existing path with a trailing slash is given as argument.More...
View Article