mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +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
|
.align 2
|
||||||
|
|
||||||
val:
|
val:
|
||||||
.long 10
|
.long SOME_VALUE
|
||||||
|
|
||||||
# Multiply input value by 10...
|
// Multiply input value by 421...
|
||||||
.global mult10
|
.global mult10
|
||||||
.type mult10, function
|
.type mult10, function
|
||||||
mult10:
|
mult10:
|
||||||
movl val,%eax
|
pushq %rbp
|
||||||
imul 4(%esp),%eax
|
movq %rsp,%rbp
|
||||||
ret
|
|
||||||
|
movl val,%eax
|
||||||
|
imull %edi,%eax
|
||||||
|
|
||||||
|
popq %rbp
|
||||||
|
ret
|
||||||
|
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
conf.load('gcc gas')
|
conf.load('gcc gas')
|
||||||
|
if sys.maxint < 4**21:
|
||||||
|
conf.fatal('this example is for 64-bit systems only')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
# http://docs.waf.googlecode.com/git/apidocs_16/tools/asm.html
|
# http://docs.waf.googlecode.com/git/apidocs_16/tools/asm.html
|
||||||
@ -11,3 +15,8 @@ def build(bld):
|
|||||||
target = 'asmtest',
|
target = 'asmtest',
|
||||||
includes = '.')
|
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