Skip to content

Instantly share code, notes, and snippets.

cffa edfe 0700 0001 0300 0000 0100 0000
0400 0000 0802 0000 0020 0000 0000 0000
1900 0000 8801 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
6001 0000 0000 0000 2802 0000 0000 0000
6001 0000 0000 0000 0700 0000 0700 0000
0400 0000 0000 0000 5f5f 7465 7874 0000
0000 0000 0000 0000 5f5f 5445 5854 0000
0000 0000 0000 0000 0000 0000 0000 0000
9100 0000 0000 0000 2802 0000 0400 0000
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 10, 14 sdk_version 10, 14
.globl _add ## -- Begin function add
.p2align 4, 0x90
_add: ## @add
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
; ModuleID = 'main.c'
source_filename = "main.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.14.0"
@.str = private unnamed_addr constant [8 x i8] c"a = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"b = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"a + b + 8 = %d\0A\00", align 1
; Function Attrs: norecurse nounwind readnone ssp uwtable
; ModuleID = 'main.c'
source_filename = "main.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.14.0"
@.str = private unnamed_addr constant [8 x i8] c"a = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"b = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"a + b + 8 = %d\0A\00", align 1
; Function Attrs: noinline nounwind optnone ssp uwtable
#include <stdio.h>
#define DEFINEEight 8
int add(int a, int b) {
return a + b + DEFINEEight;
}
int main() {
int a = 1;
int b = 2;
TranslationUnitDecl 0x7fe2bb82d408 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x7fe2bb82dca0 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
| `-BuiltinType 0x7fe2bb82d9a0 '__int128'
|-TypedefDecl 0x7fe2bb82dd08 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
| `-BuiltinType 0x7fe2bb82d9c0 'unsigned __int128'
|-TypedefDecl 0x7fe2bb82dda0 <<invalid sloc>> <invalid sloc> implicit SEL 'SEL *'
| `-PointerType 0x7fe2bb82dd60 'SEL *' imported
| `-BuiltinType 0x7fe2bb82dc00 'SEL'
|-TypedefDecl 0x7fe2bb82de78 <<invalid sloc>> <invalid sloc> implicit id 'id'
| `-ObjCObjectPointerType 0x7fe2bb82de20 'id' imported
annot_module_include '#import <F' Loc=<main.m:1:1>
int 'int' [StartOfLine] Loc=<main.m:4:1>
identifier 'add' [LeadingSpace] Loc=<main.m:4:5>
l_paren '(' Loc=<main.m:4:8>
int 'int' Loc=<main.m:4:9>
identifier 'a' [LeadingSpace] Loc=<main.m:4:13>
comma ',' Loc=<main.m:4:14>
int 'int' [LeadingSpace] Loc=<main.m:4:16>
identifier 'b' [LeadingSpace] Loc=<main.m:4:20>
r_paren ')' Loc=<main.m:4:21>
This file has been truncated, but you can view the full file.
# 1 "main.m"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 374 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "main.m" 2
# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h" 1 3
# 185 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 2 3
# 2 "main.m" 2
int add(int a, int b) {
return a + b + 8;
}
#import <Foundation/Foundation.h>
#define DEFINEEight 8
int add(int a, int b) {
return a + b + DEFINEEight;
}