Skip to content

Instantly share code, notes, and snippets.

@Tux
Created March 17, 2015 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tux/da7d140d4b6e0c554f1a to your computer and use it in GitHub Desktop.
Save Tux/da7d140d4b6e0c554f1a to your computer and use it in GitHub Desktop.
% cat xx.ec
#include <unistd.h>
#include <stdio.h>
int main ()
{
size_t t;
(void)fprintf (stderr, "size_t is %d\n", sizeof (t));
return (0);
} /* main */
% proc define=ORACLE xx.ec
Pro*C/C++: Release 11.2.0.3.0 - Production on Tue Mar 17 16:03:20 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /pro/oracle/v11.2/precomp/admin/pcscfg.cfg
% cc -DORACLE -DLINUX -D_XOPEN_SOURCE -D_GNU_SOURCE -I/pro/oracle/v11.2/precomp/public -m64 -fPIC -I/usr/local/include -O1 -g -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-all -m64 -o xx xx.c
% ./xx
size_t is 8
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment