void outcpplinenumber(nr, fname, str) unsigned nr;
char *fname;
char *str;
{
  outstr("# ");
  outudec(nr);
  outstr(" \"");
  outstr(fname);
  outstr("\"");
  outnstr(str);
}


x86 assembly (clang, -O0):
<outcpplinenumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1040 <outstr@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1030 <outudec@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1040 <outstr@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <outstr@plt>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <outstr@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1050 <outnstr@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outcpplinenumber>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1040 <outstr@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <outudec@plt>
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1040 <outstr@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <outstr@plt>
lea    0xe92(%rip),%rdi
xor    %eax,%eax
call   1040 <outstr@plt>
mov    %r14,%rdi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <outnstr@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"# \00"
@.str.1 = [3 x i8] c" \22\00"
@.str.2 = [2 x i8] c"\22\00"
define void @outcpplinenumber(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %4
%9 = call i32 (i32, ...) bitcast (i32 (...)* @outudec to i32 (i32, ...)*)(i32 %8)
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = load i8*, i8** %5
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %11)
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = load i8*, i8** %6
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @outnstr to i32 (i8*, ...)*)(i8* %14)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"# \00"
@.str.1 = [3 x i8] c" \22\00"
@.str.2 = [2 x i8] c"\22\00"
define void @outcpplinenumber(i32 %0, i8* %1, i8* %2) {
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @outudec to i32 (i32, ...)*)(i32 %0)
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %1)
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outnstr to i32 (i8*, ...)*)(i8* %2)
ret void
}