Skip to content

Instantly share code, notes, and snippets.

; AT&T syntax
Dump of assembler code for function _Dmain:
0x0805c3ac <+0>: push %ebp
0x0805c3ad <+1>: mov %esp,%ebp
0x0805c3af <+3>: sub $0x8,%esp
0x0805c3b2 <+6>: push %ebx
0x0805c3b3 <+7>: push %esi
0x0805c3b4 <+8>: push %edi
0x0805c3b5 <+9>: movl $0x2a,-0x8(%ebp) ;d = Date(42)
import std.string;
struct Date
{
this(int)
{
}
short _year = 2;
ubyte _month = 1;
ubyte _day = 1;
import std.string;
struct Date
{
this(int)
{
}
short _year = 2;
ubyte _month = 1;
ubyte _day = 1;
class RedBlackTree(alias less)
{
int a;
int nested()
{
return a;
}
struct Range
{
class RedBlackTree(alias less)
{
int a;
struct Range
{
auto @property empty()
{
return a;
}
}
class RedBlackTree(alias less)
{
int a;
struct Range
{
auto @property empty()
{
return a;
}
}
class RedBlackTree(alias less)
{
struct Range
{
auto @property empty()
{
}
}
Range opSlice()
auto f7965()()
{
int a;
class Result
{
void g() { /*a = 42;*/ }
}
return new Result();
}
struct S7965
{
}
auto f7965()()
{
int a;
class Result
{
S7965 s;
From f750e1fdbd0cf0ec0e791709fd204aaeb7781bb1 Mon Sep 17 00:00:00 2001
From: Johannes Pfau <[email protected]>
Date: Sat, 2 Feb 2013 22:53:21 +0100
Subject: [PATCH] Implement D predefined OS versions
This implements the following official versions:
* Windows
** Win32
** Win64
** Cygwin