diff options
Diffstat (limited to 'INPUTS')
-rw-r--r-- | INPUTS/Cocoa_h.m | 2 | ||||
-rw-r--r-- | INPUTS/carbon_h.c | 4 | ||||
-rw-r--r-- | INPUTS/iostream.cc | 5 | ||||
-rw-r--r-- | INPUTS/macro_pounder_fn.c | 17 | ||||
-rw-r--r-- | INPUTS/macro_pounder_obj.c | 16 |
5 files changed, 44 insertions, 0 deletions
diff --git a/INPUTS/Cocoa_h.m b/INPUTS/Cocoa_h.m new file mode 100644 index 0000000000..e6ba59924d --- /dev/null +++ b/INPUTS/Cocoa_h.m @@ -0,0 +1,2 @@ + +#import <Cocoa/Cocoa.h> diff --git a/INPUTS/carbon_h.c b/INPUTS/carbon_h.c new file mode 100644 index 0000000000..599f123a36 --- /dev/null +++ b/INPUTS/carbon_h.c @@ -0,0 +1,4 @@ + +#include <Carbon/Carbon.h> + +//#import<vecLib/vecLib.h> diff --git a/INPUTS/iostream.cc b/INPUTS/iostream.cc new file mode 100644 index 0000000000..eb12fc9aaf --- /dev/null +++ b/INPUTS/iostream.cc @@ -0,0 +1,5 @@ +// clang -I/usr/include/c++/4.0.0 -I/usr/include/c++/4.0.0/powerpc-apple-darwin8 -I/usr/include/c++/4.0.0/backward INPUTS/iostream.cc -Eonly + +#include <iostream> + +#include <stdint.h> diff --git a/INPUTS/macro_pounder_fn.c b/INPUTS/macro_pounder_fn.c new file mode 100644 index 0000000000..73f40a1d6d --- /dev/null +++ b/INPUTS/macro_pounder_fn.c @@ -0,0 +1,17 @@ + +// This pounds on macro expansion for performance reasons. This is currently +// heavily constrained by darwin's malloc. + +// Function-like macros. +#define A0(A, B) A B +#define A1(A, B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) +#define A2(A, B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) +#define A3(A, B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) +#define A4(A, B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) +#define A5(A, B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) +#define A6(A, B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) +#define A7(A, B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) +#define A8(A, B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) + +A8(a, b) + diff --git a/INPUTS/macro_pounder_obj.c b/INPUTS/macro_pounder_obj.c new file mode 100644 index 0000000000..d2465f34ed --- /dev/null +++ b/INPUTS/macro_pounder_obj.c @@ -0,0 +1,16 @@ + +// This pounds on macro expansion for performance reasons. This is currently +// heavily constrained by darwin's malloc. + +// Object-like expansions +#define A0 a b +#define A1 A0 A0 A0 A0 A0 A0 +#define A2 A1 A1 A1 A1 A1 A1 +#define A3 A2 A2 A2 A2 A2 A2 +#define A4 A3 A3 A3 A3 A3 A3 +#define A5 A4 A4 A4 A4 A4 A4 +#define A6 A5 A5 A5 A5 A5 A5 +#define A7 A6 A6 A6 A6 A6 A6 +#define A8 A7 A7 A7 A7 A7 A7 + +A8 |