public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Micrastural
@ 2021-12-25 20:11 renaud.lelievre
  0 siblings, 0 replies; 2+ messages in thread
From: renaud.lelievre @ 2021-12-25 20:11 UTC (permalink / raw)
  To: gcc-help

Apple libgcc2



32912


[ 62,  3224 ]




Renaud Lelièvre

Province-QC


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Micrastural
@ 2021-12-26 19:20 renaud.lelievre
  0 siblings, 0 replies; 2+ messages in thread
From: renaud.lelievre @ 2021-12-26 19:20 UTC (permalink / raw)
  To: gcc-help

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-26 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-25 20:11 Micrastural renaud.lelievre
2021-12-26 19:20 Micrastural renaud.lelievre

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).