gcc

  1. S

    Xor'ing float value & general cast question concerning compiler output

    Well, both questions are concerned towards my compiling output, since I try to remove all warnings.. To the first question: I'm xor'ing float values, compiler output: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] inline float...
  2. S

    How to test if gcc has failed to compile a program in Windows Batch File (cmd)?

    I have made this random C code (app.c) int main() { ERROR; // Just a random code to make sure the compiler fails. } and this batch file (run.bat) @echo off :start cls echo Compiling... gcc app.c -o app.exe app.exe pause goto start When I double-click run.bat, it gives me the following...
  3. B

    Strange/bad assembly output by gcc?

    I have the following code (minimal example): #include <iostream> #include <immintrin.h> using namespace std; int main(){ __m128i a = _mm_set_epi32(rand(),rand(),rand(),rand()); __m128i b = _mm_set_epi32(rand(),rand(),rand(),rand()); __m128i c = _mm_add_epi32(a,b); int d[4]...
Top