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:
parent
c87e5cc4b9
commit
f2f2cf5925
@ -1 +1 @@
|
||||
#define SOME_VALUE 0x1111
|
||||
#define SOME_VALUE 0x1a5
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user