public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: renaud.lelievre@mailo.com
To: gcc-help@gcc.gnu.org
Subject: Micrastural
Date: Sun, 26 Dec 2021 20:20:34 +0100 (CET)	[thread overview]
Message-ID: <ea-mime-61c8c082-42ad-229c289b@www-8.mailo.com> (raw)

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


sh-4.4$ /bin/mpicalc --print-config

version:1.9.3-unknown:10903:1.42-unknown:12a00:

cc:100200:gcc:10.2.0:

ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:sm4:

pubkeys:dsa:elgamal:rsa:ecc:

digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:sm3:

rnd-mod:linux:

cpu-arch::

mpi-asm:generic/mpih-add1.c:generic/mpih-sub1.c:generic/mpih-mul1.c:generic/mpih-mul2.c:generic/mpih-mul3.c:generic/mpih-lshift.c:generic/mpih-rshift.c:

hwflist:

fips-mode:n:n:

rng-type:standard:1:2010000:0:

compliance:::


[-- Attachment #2: main.c --]
[-- Type: text/plain, Size: 826 bytes --]

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "Flib.h"

int a = -32;

int name ()
{
    size_t bufsize = 128;
    char *buffer = malloc( bufsize ); 
    if ( buffer )
    strcpy( buffer, "i" );
    unsigned int a = -1;
    int b = 1;
    printf("%x\n", a);
    printf("%x\n", b);
    
    printf("%d\n", a);
    printf("%d\n", b);
    
    printf("%u\n", a);
    printf("%u\n", b);
    return 0;
    if (a = 32)
    return 0;
}

int OSS()
{
    int i() {
     int i;
     if (1) {
         int i;
         i = 2;
     }
     i = 3;
     return (name(3));
    }
}

int main(void)
{
    int x[MAX] = {size}; // uses the constant and the read-only variable
    state = 8;           // modifies state in flib.c
    f();                 // calls f() in flib.c
}

[-- Attachment #3: Flib.c --]
[-- Type: text/plain, Size: 376 bytes --]

#include "Flib.h"
static void local_f(int s) {}  // definition with internal linkage (only used in this file)
static int local_state;        // definition with internal linkage (only used in this file)
 
int state;                     // definition with external linkage (used by main.c)
void f(void) {local_f(state);} // definition with external linkage (used by main.c)

[-- Attachment #4: Flib.h --]
[-- Type: text/plain, Size: 412 bytes --]

#ifndef FLIB_H
#define FLIB_H
void f(void);              // function declaration with external linkage
extern int state;          // variable declaration with external linkage
static const int size = 6; // definition of a read-only variable with internal linkage
enum { MAX = 12 };         // constant definition
inline int sum (int a, int b) { return a+b; } // inline function definition
#endif // FLIB_H

             reply	other threads:[~2021-12-26 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26 19:20 renaud.lelievre [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-25 20:11 Micrastural renaud.lelievre

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=ea-mime-61c8c082-42ad-229c289b@www-8.mailo.com \
    --to=renaud.lelievre@mailo.com \
    --cc=gcc-help@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).