public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: oszibarack korte <korte.oszibarack@gmail.com>
To: gcc@gcc.gnu.org
Subject: PROBLEM !!! __ OS: ANY LINUX __ COMPILERS: gcc & g++ __ OUTPUT: BAD!!!
Date: Thu, 16 Mar 2023 18:44:34 +0100	[thread overview]
Message-ID: <CAOxG7SLVq=nG9WvsC-BCUYrMm9PzWvd=yG+=+tuW-e79DbPt2w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2106 bytes --]

*An unsolved problem for more than a decade!*
*Dear GNU Compiler Collection development team!*

*There is a problem with the gcc and g++ compilers for Linux operating
systems!*
*Here are 3 pieces of C and 3 pieces of C++ source code.*





*- Please compile them on any LINUX!- Run it!- Compare the output with the
corresponding source code!Summary:   THE OUTPUTS ARE BAD !!!*

*>>> C*

*1.*

// c0.c
// ENVIRONMENT: LINUX     COMPILER: gcc     OUTPUT: BAD !!!

#include <stdio.h>

void main (void)
{
   printf ("GNU Compiler Collection");

   while (1)
   {
       ;
   }
}


*2.*

// c1.c
// ENVIRONMENT: LINUX     COMPILER: gcc     OUTPUT: BAD !!!

#include <stdio.h>
#include <stdlib.h>

void main (void)
{
   printf ("Hello!");

   system ("sleep 10");

   system ("clear");

   printf ("Goodbye!");
}


*3.*

// c2.c
// ENVIRONMENT: LINUX     COMPILER: gcc     OUTPUT: BAD !!!

#include <stdio.h>
#include <stdlib.h>

void main (void)
{
   unsigned int   i;

   printf ("Now count up to 4.000.000.000. ST\nART! Wait...");

   for (i = 0; i < 4000000000; i++)
   {
      ;
   }

   printf ("READY!");

   system ("gcc --version");

   printf ("i = %u", i);

   system ("uname -a");
}


*>>> C++*

*1.*

// cpp0.cpp
// ENVIRONMENT: LINUX     COMPILER: g++     OUTPUT: BAD !!!

#include <iostream>

int main (void)
{
   std::cout << "GNU Compiler Collection";

   while (1)
   {
      ;
   }

   return 0;
}


*2.*

// cpp1.cpp
// ENVIRONMENT: LINUX     COMPILER: g++     OUTPUT: BAD !!!

#include <iostream>

int main (void)
{
   std::cout << "Hello!";

   system ("sleep 10");

   system ("clear");

   std::cout << "Goodbye!";

   return 0;
}


*3.*

// cpp2.cpp
// ENVIRONMENT: LINUX     COMPILER: g++     OUTPUT: BAD !!!

#include <iostream>

int main (void)
{
   unsigned int   i;

   std::cout << "Now count up to 4.000.000.000. ST\nART! Wait...";

   for (i = 0; i < 4000000000; i++)
   {
      ;
   }

   std::cout << "READY!";

   system ("g++ --version");

   std::cout << "i = " << i;

   system ("uname -a");

   return 0;
}



*Thank you,Best regards,*
korte.oszibarack
*March 16th, 2023*

             reply	other threads:[~2023-03-16 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-16 17:44 oszibarack korte [this message]
2023-03-16 17:49 ` Andrew Pinski
2023-03-16 17:49 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOxG7SLVq=nG9WvsC-BCUYrMm9PzWvd=yG+=+tuW-e79DbPt2w@mail.gmail.com' \
    --to=korte.oszibarack@gmail.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).