repo.or.cz
/
nasm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
coff: Handle massive relocations
[nasm.git]
/
test
/
perf
/
label.pl
blob
9b59768fd5c986d051b76fb9c192eedb3e38c080
1
#!/usr/bin/perl
2
#
3
# Generate a test case for label lookup performance
4
#
5
6
(
$len
) =
@ARGV
;
7
$len
=
100000
unless
(
$len
);
8
9
print
"
\t
bits 32
\n
"
;
10
print
"
\t
section .data
\n
"
;
11
print
"
\n
"
;
12
13
for
(
$i
=
0
;
$i
<
$len
;
$i
++) {
14
print
"l
$i
:
\n
"
;
15
for
(
$j
=
0
;
$j
<
8
;
$j
++) {
16
print
"
\t
dd l"
,
int
(
rand
(
$i
+
1
)),
"
\n
"
;
17
}
18
}