2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-21 17:35:55 +01:00

missing file on demos/adm

This commit is contained in:
Thomas Nagy 2012-05-06 00:08:50 +02:00
parent c87e5cc4b9
commit f2f2cf5925
3 changed files with 21 additions and 6 deletions

View File

@ -1 +1 @@
#define SOME_VALUE 0x1111
#define SOME_VALUE 0x1a5

View File

@ -4,12 +4,18 @@
.align 2
val:
.long 10
.long SOME_VALUE
# Multiply input value by 10...
// Multiply input value by 421...
.global mult10
.type mult10, function
mult10:
movl val,%eax
imul 4(%esp),%eax
ret
pushq %rbp
movq %rsp,%rbp
movl val,%eax
imull %edi,%eax
popq %rbp
ret

View File

@ -1,8 +1,12 @@
#! /usr/bin/env python
# encoding: utf-8
import sys
def configure(conf):
conf.load('gcc gas')
if sys.maxint < 4**21:
conf.fatal('this example is for 64-bit systems only')
def build(bld):
# http://docs.waf.googlecode.com/git/apidocs_16/tools/asm.html
@ -11,3 +15,8 @@ def build(bld):
target = 'asmtest',
includes = '.')
def disp(ctx):
node = ctx.bldnode.ant_glob('asmtest*', remove=False)[0]
ctx.exec_command('%s' % node.abspath(), shell=False)
bld.add_post_fun(disp)