Pop Push Using Arm GNU assembler
I am using TM4C123 evaluation board(cortex M4f Based) and trying to compile the project using different toolchains.GCC assembler generates an error for these instructions which I couldn't resolve or...
View Articlehow to install devtoolset-8 / GCC 8 on Amazon Linux 2
On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1. I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8"...
View ArticleHow I transform this code to AVX? (gcc 8.2)
How could I pass my code to AVX2 code and get the same result as before?, to be more efficient especially in more complex functions.It is possible to use in The LongNumInit,LongNumPrint functions...
View ArticleExplicitly telling GCC 9.2 to unswitch loop to allow auto-vectorization
I am working on a project that requires automatic vectorization of large loops. It is mandatory to use GCC to compile. A minimum case of the problem could be the following:#define VLEN 4#define...
View ArticleMultiple Definitions error everywhere, how do I fix this?
This is my Makefile:CC = gccSRC = $(wildcard src/*.c) \ $(wildcard src/utils/*.c)obj = $(SRC:.c=.o)LDFLAGS =output: $(obj) $(CC) $^ -o $@ $(LDFLAGS)$(obj): $(SRC) $(CC) $^ -o $@ $(LDFLAGS).PHONY:...
View ArticleEmacs on cygwin is taking forever to compile using gcc [closed]
i wrote a code in c on emacs using cygwin but the thing is when i try to use gcc to compile it it just takes forever and doesn't compile though the same code on codeblocks did compile and ran...
View ArticleHow to update to mingw-gcc 5.2? generally, how to update to gcc 9.2?
I have a problem. actually, now I use mingw64 4.8.2 compiler, but I want to use some functionality that unsupported on my actual gcc compiler. so I installed the latest gcc compiler(ver 9.2x) via....
View ArticleStrange garbage output from a simple printf()
This code leads to infinite garbage output on the console:#include <stdio.h>#include <wchar.h>#include <locale.h>int main(int argc, char **argv) { setlocale(LC_ALL, "");...
View ArticleWhy i got many error when running "make"?
I need pro devs for my problem. I installed a toolchain (linaro) for building android kernel. Then, I export the CROSS_COMPILE variable with :export...
View ArticleExporting symbols under a different name
My situation is as follows: I need to build a library where I export a "wrapped"strcpy (please ignore how that is useful to me) which the only thing it does is call the standard (from string.h) strcpy...
View Articlegcc.exe fail when building cloudflare-zlib-sys.rs
I am trying to install sheep_cli for Amethyst.rs game engine.I have x86_64-8.1.0-posix-seh-rt_v6-rev0 MinGW installed. Maybe target is wrong?error: failed to run custom build command for...
View Articlegcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
first I install cross-tool, then I build the toolchain, then I want to build the kernel but While compiling kernel 2.6.34 for RAM, repeatedly got the error...
View ArticleWhy can GCC only do loop interchange optimization when the int size is a...
When I compile this snippet (with -Ofast -fnest-loop-optimize) gcc generates assembly which traverses the array in source order.However if I uncomment the line // n = 32767 and assign any number to n,...
View ArticleVectorize random init and print for BigInt with decimal digit array, with AVX2?
How could I pass my code to AVX2 code and get the same result as before?Is it possible to use __m256i in the LongNumInit,LongNumPrint functions instead of uint8_t *L, or some similar type of...
View ArticleQuestion on import .so files compoiled with CPython
so file that compiled by cpython from a system.The breif of the calling enviroment are as follow:Linux version 3.10.0-327.ali2014.alios7.x86_64 (admin@23ae0643ac79) (gcc version 4.8.5 20150623 (Red Hat...
View ArticleBuild Tensorflow on Intel Atom
I am trying to build Tensorflow on Intel Atom using Bazel 0.15 version.I followed the instruction here for Build TensorFlow from Source with Intel® MKL.My bazel command for Intel Atom isbazel build...
View ArticleGCC / cmake hanging Ubuntu 18.04
On three different machines (three different motherboards and chipsets as well) building PyTorch is hanging Ubuntu 18.04. (Alt-SysReq REISUB works to restart.) I have waited twenty minutes to see if it...
View ArticleWhen I try to install pygame I get error: command 'gcc' failed with exit...
To be clear I'm using python 3 with PyCharm on Mac and I've done my best to make sure everything I have has been updated. I went YouTube figure out how to install pygame so once I figured out how to...
View Articlewhy C-language code giving unexpected output? [duplicate]
In the source code ,union has 2 members one is double c(8 bytes) and other is structure x (size 15+1(hole)+4 bytes = 20 bytes) since it is union ,allocation will be done of largest among them, hence 20...
View ArticleHow do you disable the unused variable warnings coming out of gcc in 3rd...
I'd like to know what switch you pass to the gcc compiler to turn off unused variable warnings? I'm getting errors out of boost on windows and I do not want to touch the boost...
View Article