Compare commits

...

586 commits

Author SHA1 Message Date
Brian Gladman
09d1bc90ed
Update Visual Studio build files to be version independent (#319)
Some checks failed
Build / Build - Ubuntu (push) Failing after 5s
Build / Build - MSVC (push) Has been cancelled
Build / Build - macOS (push) Has been cancelled
2026-07-31 15:46:22 -07:00
Anonymous Maarten
8c717107dd
Emit an error when seeing an invalid condition code in a macro (nasm mode) (#316)
Some checks failed
Build / Build - Ubuntu (push) Failing after 4s
Build / Build - MSVC (push) Has been cancelled
Build / Build - macOS (push) Has been cancelled
make-check: check .errwarn file first if yasm failed
2026-07-28 17:44:34 -07:00
Brian Gladman
3ec3aa8c33
Visual Studio 2026 build fixes (#318) 2026-07-28 17:43:30 -07:00
Anonymous Maarten
9491fc6543
Fix -Wimplicit-function-declaration (implicit declaration of function ‘strdup’) (#314) 2026-07-25 11:01:37 -07:00
Anonymous Maarten
9a05f6b3fa
Fix -Wunused-but-set-variable warnings (#315) 2026-07-25 11:01:20 -07:00
Anonymous Maarten
d196fb3cb9
Fix -Wtautological-compare warning (self-comparison always evaluates to true) (#312) 2026-07-25 09:59:44 -05:00
Anonymous Maarten
baceff9d12
Fix -Wdeclaration-after-statement warning (ISO C90 forbids mixed declarations and code) (#313) 2026-07-25 09:58:34 -05:00
Peter Johnson
5500e13ed5
Restore Mkfiles/vs project (#311)
This is still consumed by users.
2026-07-24 23:26:01 +01:00
Anonymous Maarten
8fea7b9c50
cmake: add back dependency on its input of re2c gnerated file (#308)
Small fix-up of #307
2026-07-21 18:48:06 -07:00
Anonymous Maarten
5062329be0
Remove MSBuild projects (#310)
CMake supports MSVC.
CMake can also drive a DJGPP toolchain, but its makefile is simple enough.
2026-07-21 18:47:42 -07:00
Martin 'JaMa' Jansa
715d3d5c5c
bitvect: fix build with gcc-15 (#287)
* fixes:
libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration constant
   86 |         typedef enum boolean { false = FALSE, true = TRUE } boolean;
      |                                ^~~~~
../git/libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23' onwards

as suggested in:
https://github.com/yasm/yasm/issues/283#issuecomment-2661108816

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2026-07-21 18:45:50 -07:00
Anonymous Maarten
7a7762c337
cmake: support CMake 4.0 and cross building (#307) 2026-07-20 22:36:19 -07:00
Anonymous Maarten
baa3b160ce
Don't output absolute output path in binfmt mapfile for tests (#305) 2026-07-20 22:31:42 -07:00
Anonymous Maarten
430e4f55c0
subminor of a macho buildversion is optional (#304)
This fixes a difference in behavior between yasm built by autotools and cmake (due to different compile flags)
2026-07-20 22:30:44 -07:00
Anonymous Maarten
74d88e80be
cmake: add build dependency of the frontends to yasmstd and add its directory to RUNPATH (#302) 2026-07-20 22:30:19 -07:00
Anonymous Maarten
3199a84f0c
Ensure all reference hex files have trailing spaces (#303) 2026-07-20 22:29:56 -07:00
Anonymous Maarten
1f09fa089d
cmake: register all modules in yasm_init_plugin (#301)
Some modules were not registered when dynamically loading yasmstd.
2026-07-20 22:29:03 -07:00
Anonymous Maarten
7b15cffe2d ci: build CMake project on GitHub actions 2026-07-21 00:27:26 -05:00
Anonymous Maarten
9361f783cf ci: bump dependencies + prepare for CMake build 2026-07-21 00:27:26 -05:00
Yao Zi
a2f8bdf075 dwarf2: Correctly initialize dwarf2_line_info.errwarns
Forgetting to this causes unexpected control flow transfers and even
misoptimizations. When building with LLVM 20.1.4 and LTO enabled,
misoptimizations will ultimately lead to segfaults in
dwarf2_gen64_test.sh.

Signed-off-by: Yao Zi <ziyao@disroot.org>
2026-01-03 16:18:40 -08:00
jca
b9c3fe6399 Add support for endbr32/endbr64 (#156) 2026-01-03 13:46:44 -08:00
jca
e2c133fe29 Add support for four bytes instructions 2026-01-03 13:46:44 -08:00
haruki3hhh
121ab150b3
Fix null pointer dereference in yasm_section_bcs_append (#263) 2024-06-24 16:08:27 -07:00
dataisland
9defefae9f
Fix null-pointer-dereference in yasm_expr_get_intnum (#244) 2023-09-21 22:21:20 -07:00
dataisland
ecb47f1c87
Fix handle_dot_label heap-out-of-bound (#243) 2023-09-21 22:21:10 -07:00
dataisland
84be2ee6c3
Fix use-after-free in yasm_intnum_destroy (#242) 2023-09-21 22:20:58 -07:00
Kent Ross
1f63a45d24
Fix misleading indentation (#132) 2023-09-21 22:05:25 -07:00
dataisland
0dfac4d4da
Fix nullptr deref in yasm_expr__copy_except (#241) 2023-09-21 22:04:21 -07:00
Andrei Karas
721134a8ae
Fix memory leak if masm mode enabled in parsers (#239) 2023-09-21 22:04:09 -07:00
Andrei Karas
dfc1c9e841
Fix access field adress on null pointer in x86bc.c (#238) 2023-09-12 15:21:23 -07:00
Peter Johnson
2cd3bb50e2
elf.c: Fix NULL deref on bad xsize expression (#234) 2023-06-30 08:08:55 -07:00
PoroCYon
4dc8c3bf03
Add support for NASM %warning preprocessor directive (#232)
Regular NASM supports this, while Yasm doesn't seem to. This fixes the
discrepancy.
2023-06-17 23:44:01 -07:00
Katsuhiko Gondow
b2cc5a1693
Fix memory leak in bin-objfmt (#231) 2023-06-12 13:00:47 -07:00
Biswapriyo Nath
f79f5e37f0
Fix function declaration warnings with clang (#226)
This fixes the following compiler warnings with clang

tools/genperf/perfect.c:65:6: warning: a function definition without a prototype
is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]

frontends/yasm/yasm.c:1379:23: warning: a function declaration without a prototype
is deprecated in all versions of C [-Wstrict-prototypes]

modules/objfmts/elf/elf.c:225:18: warning: a function declaration without a prototype
is deprecated in all versions of C [-Wstrict-prototypes]
2023-05-17 15:23:32 -07:00
Biswapriyo Nath
22da04ee0d
CI: update GitHub Actions version (#225)
Node.js 12 actions are deprecated. For more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-05-17 12:07:24 -07:00
Biswapriyo Nath
e69fba2db0
Fix missing yasm_xfree function declaration (#224)
This fixes the following compiler error in macOS in CI.

libyasm/tests/bitvect_test.c:112:5: error: implicit declaration of
function 'yasm_xfree' [-Werror,-Wimplicit-function-declaration]
2023-05-14 11:03:04 -07:00
Ulya Trofimovich
811f24d0bf
GAS preprocessor: don't cut comments inside of string literals. (#81) 2023-05-12 21:23:13 -07:00
bird2tori
241bf4c42c
More makedep features (#80)
yasm.c: Added -MD, -MT and -MP options similar to gcc. Also added --makedep-dos2unix-slash for helping users of NUG make (and similar) on Windows. The -MD option does both assembling and Makefile dependency generation in one go, which convenient and a little quicker.

nasm-preproc.c: Have to always gather dependencies to support -MD. Minimal cost.

Co-authored-by: knut st. osmundsen <bird-skylake@anduin.net>
2023-05-12 21:22:36 -07:00
mackyle
563a03be81
libyasm/section.c: support gas .private_extern directive (#138)
Support for "private_extern" was previously added for nasm mode via
a declaration like so:

    global foo:private_extern
    foo:
             ; codes

However, that same code in gas format looks like this:

    .private_extern foo
    foo:
             # codes

Add support for the gas version of "private_extern" syntax by
supporting a new gas `.private_extern` directive that actually
has exactly the same semantics as the nasm `global ...:private_extern`
directive.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
2023-05-12 21:20:12 -07:00
Duncan Ogilvie
8b6c7b237c
Fix allocator mismatch (#107) 2023-05-12 21:19:37 -07:00
Scott Furry
e9badc5a77
Python 2 to 3 migration - m4 folder (#144)
Update cython.m4 and pythonhead.m4 files to be compatible with py2/3

pythonhead.m4 changes taken from:
  https://raw.githubusercontent.com/posborne/dbus-python/master/m4/am-check-python-headers.m4

cython.m4 changes taken from:
  https://raw.githubusercontent.com/alisw/rivet/master/m4/cython.m4
2023-05-12 21:18:39 -07:00
Kaz Wesley
8a87860db7
Enable AES on westmere (#97)
Prior to this change: cpu_lcd(['AVX'], ['AVX','AES']) == ['AVX'],
causing AES instructions to be treated as unsupported when "cpu
WESTMERE" is used, or even "cpu WESTMERE AES".

Fixed by reordering ordered_cpu_features such that now,
cpu_lcd(['AVX'], ['AVX','AES']) == ['AES']. I don't know if there are
CPUs this would not be correct for, but this is the value that's
consistent with all extant CPU definitions.
2023-05-12 21:18:15 -07:00
Peter Meerwald-Stadler
f2f9f157df
Allow sha256rnds2 to have memory as 2nd operand (#108) 2023-05-12 21:17:09 -07:00
James Touton
468014643d
Added missing config vars to config.h.cmake. (#160) 2023-05-12 21:16:49 -07:00
squidcc
3bbfd9d8f9
Fix 128-bit variant of VPBLENDVB incorrectly marked as AVX2 instead of AVX (#112) 2023-05-12 21:16:26 -07:00
kalebskeithley
0799f381d5
Update elf-objfmt.c (#148) 2023-05-12 21:15:02 -07:00
Matthieu Darbois
ce56a6f924
Fix test failure introduced in 51af4082cc (#145)
modules/arch/x86/tests/x86_test.sh failed after 51af4082cc commit.
This fixes this test.
2023-05-12 21:14:32 -07:00
Fighter19
529c14bfdc
Fix badly freed pointer on indented code block after rept (#189) 2023-05-12 21:13:44 -07:00
cryptobro
fa9e004383
gas preproc: Fix UB/crashes (#186) 2023-05-12 21:12:54 -07:00
Peter Meerwald-Stadler
93a960bc7d
Fix memleak of codeview leaf (#114) 2023-05-12 21:10:17 -07:00
liuxiang88
bfe1bc257d
Add EM for loongarch (#192) 2023-05-12 21:08:50 -07:00
Ismo Puustinen
61e374f247
Remove __DATE__ from version strings (#198)
Having __DATE__ is causing compilation errors when it's defined by Bazel
build tool like this: -D__DATE__=redacted
2023-05-12 21:07:35 -07:00
Biswapriyo Nath
a277a590f0
Fix detecting Windows platform (#204)
This replaces _MSC_VER macro with _WIN32 because the
former one is for MSVC and Visual Studio only and is
not defined in mingw environment. Wherease, _WIN32
macro is the proper way to check Windows platform
irrespective of compiler toolchain.

See the following official link for more info
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
2023-05-12 21:06:53 -07:00
Siddhesh Poyarekar
05a52bab75
Introduce a security policy and add text to the README (#223)
Add a SECURITY.md that disclaims almost all bugs as security issues.
2023-05-12 21:06:18 -07:00
MonicaLiu
101bca9ca8
Add vcpkg installation instructions (#200)
Co-authored-by: Monica <v-liumonica@microsoft.com>
2022-09-14 16:38:24 -07:00
Brian Gladman
ffbd22cdc9 Merge branch 'master' of https://github.com/yasm/yasm 2022-01-27 16:26:06 +00:00
Brian Gladman
9d02e0f49d Update Visual Studio build to Visual STudio 2022 2022-01-27 16:25:55 +00:00
Peter Johnson
41762bead1
Update Mach-O for newer macOS (#180)
- Create a dummy .llvmasm section for bitcode
- Add [buildversion] directive for setting minos and sdk versions, e.g. [buildversion minos="10.14" sdk="10.14"]. This defaults to 10.5 on x64 and 10.4 on x86.
2021-07-10 12:12:45 -07:00
Peter Johnson
d938d97505
Add GitHub CI build workflow (#179) 2021-07-09 14:49:16 -07:00
Peter Johnson
3e74376b56
Do not use AC_HEADER_STDC (#178)
This fixes compatibility with autotools 2.70+
2021-07-09 14:02:37 -07:00
Peter Johnson
f01afb6b51
Fix test failures (#177)
These were caused by the addition of the segreg-in-64bit warning.
2021-07-09 13:42:53 -07:00
Brian Gladman
009450c7ad minor update to VS2019 build 2020-07-27 17:01:46 +01:00
Brian Gladman
c9db6d70a9 add missing include file 2020-05-04 14:54:18 +01:00
mx237
98a83602f2
Fix EOL handling in genmacro.c (#123) 2020-05-03 23:38:42 -07:00
Denis Denisov
bd283fe523
Revert optimizations added in #68 (#146) 2020-05-03 23:36:45 -07:00
Ozkan Sezer
976d2e0934
Fix info.stab / info.stabstr typo in stabs-dbgfmt.c (#96) 2020-05-03 23:35:04 -07:00
Brian Gladman
ea8f239361 Allow user to set the YASM path with or without an ending backslash in Visual Studio integration 2019-10-12 15:02:44 +01:00
Brian Gladman
bcc01c59d8 add build files for Microsoft Visual Studio 2019 2019-05-16 13:57:23 +01:00
Brian Gladman
80bc804ecb Merge branch 'master' of https://github.com/yasm/yasm 2018-12-04 22:34:21 +00:00
Brian Gladman
a1aa3adc2c correct bug in VSYASM build integration files (vsyasm.targets) 2018-12-04 22:33:14 +00:00
Brian Gladman
70f79a3a66 correct bug in VSYASM build integration files (vsyasm.targets) 2018-12-04 21:18:38 +00:00
Brian Gladman
35af9720e3 change vsyasm.props to use the YASM_PATH environment variable if present 2018-09-28 00:38:32 +01:00
Brian Gladman
627e1c29a4 Update the files for integrating YASM into Visual Studio 2017 2018-09-27 18:34:45 +01:00
mostynb
e256985c49 avoid 'return value of ftruncate ignored' warnings (#76) 2017-09-23 15:14:23 -07:00
Matt Oliver
6eac25ff8c allow movbe to be suffixed with wlq in gas syntax. 2017-09-23 15:11:49 -07:00
Matt Oliver
7418458622 fix memory errors when using gas processor with coff object output. 2017-09-23 15:11:49 -07:00
Simon Brenner
85dad85f7c Only print 'warnings treated as errors' if there were warnings (#75)
This prints it as an additional error for the line that generated the
first warning.
2017-09-23 15:09:47 -07:00
bird2tori
4808260d62 Leak fixes (#79)
* preproc/nasm: Close the input file; addressed a few memory leaks.

* yasm.c: delete include paths before we exit

* cv-dbgfmt.c: Free cv_filename::filename too.
2017-09-23 15:08:58 -07:00
Paul Blinzer
91d628ac60 New AMD Excavator MONITORX, MWAITX instruction support (for 32bit/64bit) (#78)
MONITORX has opcode "0F 01 FA".
rAX contains address to be monitored
ECX specifies optional extensions
EDX specifies optional hints

MWAITX has opcode "0F 01 FA".
EAX specifies optional hints
ECX specifies optional extensions

Public documentation: http://support.amd.com/TechDocs/24594.pdf

New CLZERO instruction support (for 32bit/64bit)
		* clzero has opcode "0F 01 FC".
		* clzero gets enabled with CPUID, 8000_0008, EBX[0] =1.
		* clzero instruction zero's out the 64 byte cache line specified in rAX. Bits 5:0 of rAX are ignored

Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Redistributed under simplified 2-clause BSD licence
2017-09-23 15:08:03 -07:00
Brian Gladman
6caf151893 add Visual Studio 2017 build files 2017-03-07 20:38:37 +00:00
Brian Gladman
6143552f92 add missing VC++ header 2017-03-07 20:31:18 +00:00
Peter Johnson
51af4082cc Added -Wno-segreg-in-64bit.
This allows suppressing the annoying 'segment register ignored in 64-bit mode'
warning.
2015-11-06 20:15:04 -08:00
Brian Gladman
0efd093199 Merge branch 'master' of github.com:yasm/yasm 2015-11-06 11:33:59 +00:00
Brian Gladman
86b96b21fa update MSVC14 build 2015-11-06 11:33:14 +00:00
Peter Johnson
19a29bfca1 Merge pull request #74 from darealshinji/patch-1
fixing an argument parsing bug in ytasm
2015-11-06 02:43:29 -08:00
Peter Johnson
3733061744 Merge pull request #70 from sgraham/shadowing-warning-vs2015
Avoid shadowing warning when building with VS2015
2015-11-06 02:38:39 -08:00
Peter Johnson
257df7ec47 Merge pull request #72 from Gramner/master
Support numbers prefixed with + or - in %ifnum
2015-11-06 02:36:56 -08:00
darealshinji
8fd3d4d95e fixing an argument parsing bug in ytasm
Taken from a Debian patch.
More information can be found at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716639
http://anonscm.debian.org/viewvc/sam-hocevar/pkg-misc/unstable/yasm/debian/patches/100_ytasm_parsing_error.diff?view=log
2015-11-05 18:57:21 +01:00
Henrik Gramner
32ad9c46ce Support numbers prefixed with + or - in %ifnum 2015-10-17 21:50:15 +02:00
Brian Gladman
7160679eee add Visual Studio build files missed in thye initial commit 2015-07-27 20:48:42 +01:00
Brian Gladman
afef34e3ce Add build files for Visual Studio 2015 2015-05-16 15:17:55 +01:00
Scott Graham
ac99773493 Avoid shadowing warning when building with VS2015 2015-02-19 17:05:38 -08:00
Peter Johnson
bf8411efa8 Merge pull request #68 from jix/master
Optimization and improved @jix
2015-01-01 21:51:00 -08:00
Peter Johnson
399029052c Merge pull request #69 from denji/gas-segfault
Fix segfaults GNU assembler files on OS X
2015-01-01 21:49:16 -08:00
Denis Denisov
0c2d90c6b3 Fix yasm segfaults GNU assembler files on OS X
Bug: http://tortall.lighthouseapp.com/projects/78676/tickets/269
2014-11-15 23:37:54 +02:00
Peter Johnson
1962750ea6 Allow -longopt as well as --longopt.
This is more consistent with other tools.
2014-10-05 10:31:26 -07:00
Peter Johnson
85b88de12d Rename -E option to -Z.
"-E" is too easily typoed for "-e", and is dangerous because it overwrites
the following filename.  "-E" is retained as a synonym for "-e".

This change also makes yasm command-line consistent with NASM.
2014-10-05 10:10:08 -07:00
Peter Johnson
d7abe469f5 Fix a few more cases of case sensitivity in module handling. 2014-10-05 09:50:55 -07:00
Peter Johnson
6818957d07 Make cmake module search case-insensitive.
This is needed to make things like "-f Win32" work, and matches the non-cmake
behavior.

[#276 state:resolved]
2014-10-05 09:48:51 -07:00
Peter Johnson
1910e91479 COFF/PE: Always set paddr and vaddr to 0.
It appears that GNU binutils always interpret PE/COFF object files as if
they were executable files, namely that the paddr field is a rounded-up
section size (aka virtual size).  Yasm previously followed the Microsoft
specification which stated that for object files this field should be set
to the "physical address" of the section (e.g. the sum of all previous
section sizes).  However, several other sources state this field should be
set to 0 in object files, and it appears that Microsoft tools accept this.

For compatibility with the GNU tools, this commit makes Yasm always set the
paddr/vsize field to 0.

This commit also eliminates the COFF_SET_VMA customization for COFF
files.  Previously this was used to set LMA=VMA in COFF, but LMA=0 in PE.
Now that VMA is always 0, this is no longer required (LMA=VMA=0 in both
PE and COFF).
2014-09-26 21:12:42 -07:00
Peter Johnson
4c2772c3f9 Add missing objfmt_x64 to CMakeLists.txt.
This caused cmake builds to not recognize "x64" as an object format.

Reported by: Brian Gladman
2014-09-19 00:46:15 -07:00
Peter Johnson
ba463d3c26 Bump DEF_VER to 1.3.0 for release. 2014-08-10 23:18:52 -07:00
Peter Johnson
636dc92558 Allow building of static executables with cmake. 2014-08-10 23:18:46 -07:00
Peter Johnson
24e01c833f Add missing YASM_LIB_DECL declarations. 2014-08-10 12:33:52 -07:00
Peter Johnson
d3ea3ac89f genstring.py: Make Python3-compatible. 2014-08-10 12:33:52 -07:00
Peter Johnson
00c85278d1 Warnings cleanup. 2014-08-10 11:39:20 -07:00
Peter Johnson
f9a86422cf Add vsyasm to cmake build. 2014-08-10 11:39:20 -07:00
Peter Johnson
edfcd8ac85 VersionGen.cmake: Fix endif. 2014-08-10 11:39:20 -07:00
Peter Johnson
5364f236cf Update .gitignore for automake changes. 2014-08-10 11:39:20 -07:00
Peter Johnson
61c143f85b Turn on subdir-objects automake option. 2014-08-10 11:39:20 -07:00
Peter Johnson
cd1e6f51de Update gettext. 2014-08-10 11:39:19 -07:00
Peter Johnson
0b5fde7350 Add cmake files to distribution. 2014-08-10 11:39:15 -07:00
Peter Johnson
f701862b1b Bump copyright dates for 2014. 2014-08-10 10:30:28 -07:00
Peter Johnson
822bdfb4a8 Add vc12 files to distribution. 2014-08-10 00:46:58 -07:00
Peter Johnson
f7f350151f dist-hook: Copy YASM-VERSION.h to Mkfiles/vc12. 2014-08-10 00:43:17 -07:00
Peter Johnson
86fc07b574 coff-objfmt.c: Add missing break.
[#268 state:resolved]
2014-04-13 23:00:03 -07:00
Peter Johnson
dfb19929cc Merge pull request #67 from maksqwe/initalen_fix
missing 'break' in initalen()
2014-04-13 22:59:30 -07:00
Maks Naumov
bd3a470498 missing 'break' in initalen() 2014-04-11 21:05:55 +03:00
Brian Gladman
fcaf3cef58 Rename a Visual Studio 2013 build file 2014-04-06 08:40:31 +01:00
Brian Gladman
ab2cf05d1d Add Visual Studio 2013 build files 2014-04-06 08:35:10 +01:00
Peter Johnson
047c49b542 Add cpu ivybridge, haswell, broadwell, skylake. 2014-04-05 23:34:27 -07:00
Peter Johnson
0ca0ffc65f Add Intel ADX, RDSEED, and SMAP instructions. 2014-04-05 00:17:13 -07:00
Peter Johnson
1a0c61d29e Add Intel SHA instructions.
Contributed by: Mark Charney @ Intel
2014-02-14 12:03:54 -08:00
Peter Johnson
09afa42e2b Merge pull request #66 from Gramner/master
Use a larger hash table size
2014-02-14 11:33:25 -08:00
Henrik Gramner
e32ff2c2ab Use a larger hash table size
Increases compilation speed of files with a large number of macros by
around 20x.
2014-01-21 00:24:40 +01:00
Brian Gladman
87c09baff8 test commit 2013-11-13 13:15:26 +00:00
briangladman
aba12e73f4 Minor change to Python detection in the Visual Studio build to avoid spurious error message 2013-11-13 12:24:21 +00:00
Peter Johnson
964fd9a016 Optimize matching loops.
Reported by: Po-Chun Chang

[#264 state:resolved]
[#265 state:resolved]
[#266 state:resolved]
2013-08-07 22:15:20 -07:00
Peter Johnson
d8c0c39254 Update config.guess and config.sub.
[#255 state:resolved]
2013-07-03 11:25:50 -07:00
Peter Johnson
a24f4841f7 cv8: Fix line number issues with multiple files.
Patch by: Knut St. Osmundsen

[#263 state:resolved]
2013-07-03 11:06:56 -07:00
Peter Johnson
c3aa2478c6 Unbreak distcheck. 2013-06-21 10:03:05 -07:00
Peter Johnson
31c99f1fb2 Fix vpbroadcastq.
Patch by: Jason Garrett-Glaser <jason@x264.com>
2013-06-21 10:03:05 -07:00
BrianGladman
607feba6d9 Make the detection of Python in the Visual Studio 2010 build more robust 2012-11-06 09:16:28 +00:00
Peter Johnson
1db998a3d3 Add support for "function" decorator in win32/win64.
This can be used on global directives (e.g. global _foo:function) to
indicate the global is a function.  This is useful for incremental
linking in MSVC.
2012-10-19 17:25:27 -07:00
BrianGladman
8dd87f6b16 add new elf file to visual studio 2010 build 2012-09-11 19:57:20 +01:00
Peter Johnson
73caedeebd gas-parse.c: Eliminate warning. 2012-08-30 23:53:41 -07:00
Peter Johnson
243248dab1 Regen yasm_arch.7 and yasm_objfmts.7. 2012-08-30 23:53:29 -07:00
H.J. Lu
510c8dd7e6 Add support for x32
X32 is a 32-bit psABI for x86-64 with 32-bit pointer size.  More info
can be found at:

https://sites.google.com/site/x32abi/
2012-08-30 23:47:41 -07:00
Peter Johnson
9728322335 Merge pull request #64 from sgraham/fix-win32-warnings
Fix a couple warnings when building on win32
2012-08-30 23:40:42 -07:00
Peter Johnson
85f4120b6a Improve check for Cython version.
[#249 state:resolved]
2012-08-30 23:36:39 -07:00
Peter Johnson
96edd8aa0e Fix vphaddudq opcode; should be DB rather than D8. 2012-08-18 13:55:10 -07:00
Jannis Harder
0341b79311 Better optimization of expr with segoffs
Lift all segoffs to the root of the tree. Combine identical segment
values while doing this.
2012-08-03 17:30:15 +02:00
Jannis Harder
c02c6c72d0 Interpret vstart as linear address
Changed segment:offset calculations so that vstart = 16*segment +
offset and vseg = segment instead of vstart = offset. Without this the
existing code to infer vstart addresses is not useful.
2012-08-01 15:32:21 +02:00
Jannis Harder
15e9012b77 Generate segmented addresses for labels
- Labels defined inside sections with vseg have segment:offset
  addresses
- The section.<section name>.vstart label has a segment:offset
  address
2012-08-01 15:32:21 +02:00
Jannis Harder
aaea0fc138 Add segments to label addresses
Generate addresses with a segment part for labels inside a section
with a defined vseg
2012-08-01 15:32:21 +02:00
Jannis Harder
d36aecd48c squashme 2012-08-01 15:30:50 +02:00
Jannis Harder
8da658af79 Overrides and dummy value finalization for bin
- Added support for overriding certain functions
- Override value_finalize with dummy function for the bin objfmt
2012-07-31 13:01:22 +02:00
Jannis Harder
662fa69efc New wrt optimization and improved seg optimization
- Improve seg optimization to handle deep segoffs
- Add wrt optimization that handles deep segoffs
2012-07-31 13:01:22 +02:00
Jannis Harder
90a8e215d6 Add vseg section option
- Added vseg and ivseg to bin_section_data
- Parsing of vseg option as expression
- Conversion to integer ivsg
- Output of vseg in mapfiles
2012-07-31 13:01:15 +02:00
Peter Johnson
73a5474278 Merge pull request #65 from vmt/master
Fix definition of pmulhrw
2012-05-31 21:43:51 -07:00
Vivek Thampi
0e7f34a025 Fix minor typo in the definition of pmulhrw
This change fixes the definition of "pmulhrw" where it is defined
as having the mnemonic "pmulhrwa".
2012-05-28 23:59:55 -07:00
Scott Graham
51b1f7ef98 fix a couple warnings when building on win32 2012-05-09 20:48:16 -07:00
Peter Johnson
82fafa7b56 Merge pull request #63 from nico/blah
Don't use a C++ comment in a C source file.
2012-03-12 23:58:35 -07:00
Nico Weber
203bc94f39 Don't use a C++ comment in a C source file. 2012-03-10 22:52:34 -08:00
Peter Johnson
8770f6073a Merge pull request #62 from nico/ticket246
In the Mach-O writer, only warn on ignored flags if the new flags are different from the old flags.

[#246 state:resolved]
2012-03-09 21:41:18 -08:00
Nico Weber
01ab853e68 In the Mach-O writer, only warn on ignored flags if the new flags
are different from the old flags.

Fixes http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/246
2012-03-06 17:40:41 -08:00
Peter Johnson
cc06a6a43d Merge pull request #61 from fischman/master
Silence is golden: genperf emits too much stdout in success path
2012-03-02 14:38:30 -08:00
sergey semenko
916ff048f7 Added support for HSW TSX instructions:
XAXQUIRE
XRELEASE
XABORT
XBEGIN
XEND
XTEST

Also fixed a bug for CALL instruction (opcode 0xE8) - it allowed 16 bit operand with 0x66 prefix in 64 bit mode,
while 16 bit operand is not allowed at all in 64 bit mode.

Added X86_ACQREL prefix group for XACQUIRE/XRELEASE prefixes, since they need to be orthogonal to LOCKREP
prefixes, because TSX prefixes must come together with F0 (LOCK) prefix.

However this commit does not enforce using TSX hints only with instructions they are allowed to be used.
The reason for this is that lock prefix F0 itself is not enforced to be used only with lockable instructions, this seems to be a decision made by
Yasm developers, that user himself must take care of these situations.

Right now TSX hints can come with F0 prefix, can come with REPNE/REPZE prefixes, but they are used together in assembly, only the leftmost would be
encoded to the binary and warning will be issued. This is the behavior of Yasm for duplicate LOCKREP prefixes.
2012-03-02 14:36:30 -08:00
Jason Garrett-Glaser
a8495ad151 Add AMD TBM instructions.
Reference: http://support.amd.com/us/Processor_TechDocs/24594_APM_v3.pdf

Also add appropriate CPU bits and directive handling for these.
2012-03-02 14:29:21 -08:00
Ami Fischman
5f01ee0f94 Drop success-path chatter from genperf. 2012-03-02 14:12:19 -08:00
BrianGladman
827922d98d Add prebuild step for yasm-verssion.h 2011-10-31 18:38:16 +00:00
BrianGladman
d0084dc852 add path for YASM-VERSION.h 2011-10-31 17:40:10 +00:00
Peter Johnson
0f5e8ebdb5 Bump DEF_VER to 1.2.0 for release. 2011-10-31 00:29:42 -07:00
Peter Johnson
e437ef4292 Add Mkfiles/vc10/out_copy_rename.bat to distribution. 2011-10-31 00:29:42 -07:00
Peter Johnson
c0f152742f Copy YASM-VERSION.h to Mkfiles for distribution. 2011-10-31 00:29:42 -07:00
Peter Johnson
ab19547382 re2c: Work around tmpfile() issue on win32.
tmpfile() defaults to C:\, and on Windows 7 can run into permissions issues.
Add workaround implementation from cairo
(http://cgit.freedesktop.org/cairo/commit/?id=4fa46e3caaffb54f4419887418d8d0ea39816092)

See also: http://msdn.microsoft.com/en-us/library/x8x7sakw(v=VS.80).aspx
(community content section)
2011-10-31 00:29:42 -07:00
Peter Johnson
b334347286 win64: Default to nobase for .xdata section.
Also add ..imagebase special symbol to force use of a nobase relocation.

[#135 state:resolved]
2011-10-30 22:21:57 -07:00
Peter Johnson
2bd66514b6 re2c: Use tmpfile instead of fixed temporary filename.
This could cause a race condition when running parallel make.

Tracked down by Volker Braun.

[#238 state:resolved]
[#165 state:resolved]
2011-10-02 23:20:38 -07:00
Peter Johnson
cc4657a134 Merge pull request #60 from olsner/struc_base
Implement the base offset parameter for the struc macro
2011-10-02 22:11:01 -07:00
Simon Brenner
d19cbdabab Add testcase for struc with base offset 2011-10-02 06:03:29 +02:00
Simon Brenner
25a46fa5b0 Implement the base offset parameter to 'struc' 2011-10-02 06:03:29 +02:00
Peter Johnson
716c17112d nasm-pp.c: Plug a memory leak. 2011-09-30 12:52:32 -07:00
Peter Johnson
eb8b346157 Merge pull request #59 from pwo/patch-1
Fix clang warning.
2011-09-27 23:18:15 -07:00
Pawel Worach
a2cbb10ee1 Fix clang warning:
libyasm/md5.c:166:31: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
        memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */
               ~~~            ^~~
2011-09-24 16:41:08 +03:00
Peter Johnson
0e3fa2d6d1 Makefile.am: Clean YASM-VERSION.h. 2011-09-03 21:27:21 -07:00
Peter Johnson
451bfd6374 Fix .gitignore for some wildcards. 2011-09-03 21:18:34 -07:00
Peter Johnson
e11ea9df14 Add missing macho32-pext test case. 2011-09-03 21:18:08 -07:00
Peter Johnson
c3b483199c Regenerate man pages. 2011-08-27 16:28:25 -07:00
Peter Johnson
7d58243134 macho: Support N_PEXT bit.
Can be enabled via use of "private_extern" in NASM syntax.

Patch by: Hironori Bono

[#215 state:resolved]
2011-08-27 10:01:26 -07:00
Peter Johnson
0ed2cc4451 Generate version number information from git history.
Due to the svn import structure, a special case is currently implemented
to look for the 1.1.0 branchpoint instead of the most recent tag on the
master branch.  This will be removed after the first release is tagged
on the master branch in git.

Specific details:

autogen.sh: More aggressively clean autoconf cache.
This is needed to ensure the version number is actually regenerated.

Don't generate PACKAGE_PATCHLEVEL or PACKAGE_BUILD variables.  The
genversion program now parses PACKAGE_VERSION directly.

For Mkfiles builds, YASM-VERSION.h is generated and included by the custom
config.h.  This avoids the need to edit config.h for versioning.
2011-08-27 09:25:30 -07:00
Peter Johnson
8281be0c25 Add .gitignore files.
These are based on the old svn:ignore properties.
2011-08-27 09:24:07 -07:00
Peter Johnson
94ab1135a3 Remove $Id$ and RCSID() usage.
These are useless now that we're using git.
2011-08-19 10:43:16 -07:00
Peter Johnson
502eebd339 Fix const warning in elf_machine_ssym usage.
Reported by: Pierre Muller

[#237 state:resolved]
2011-08-19 10:21:10 -07:00
Peter Johnson
d8d1a5ad90 win64-except.c: Fix incorrect dereference.
Reported by: Pierre Muller

[#236 state:resolved]
2011-08-19 10:14:31 -07:00
Peter Johnson
a9b943e5db file.h: Separate conditional inclusion of direct.h.
This fixes builds on mingw64.

Reported by: Pierre Muller

[#235 state:resolved]
2011-08-19 10:14:14 -07:00
Peter Johnson
40da5cb2c7 dwarf: Fix uninitialized structure member.
dwarf2_loc.discriminator wasn't being initialized by
dwarf2_generate_line_section, leading to incorrect output, including
intermittent test failures in gen64/dwarf64_pathname.
2011-07-11 00:15:30 -07:00
Peter Johnson
bd8401d538 expr_simplify_identity: Pass int_term via pointer.
This allows signaling to the caller (expr_level_op) that the int_term
was destroyed.  Without this, the new expr-simplify-identity testcase
has a use-after-free.

[#232 state:resolved]
2011-07-10 23:44:18 -07:00
Peter Johnson
3b65acb39d Fix VGATHER/VPGATHER memory sizes.
These now match the memory fetch sizes in the AVX reference.

Reported by: nasm64developer
2011-07-04 11:35:19 -07:00
Peter Johnson
ab721f347d Add AVX2 VGATHER* and VPGATHER* instructions.
These instructions use "VSIB" encoding, which takes the place of the
usual SIB encoding.  Several tests cover various legal and illegal
modes.

Last part of [#227 state:resolved].
2011-07-03 19:54:45 -07:00
Peter Johnson
d779fcb04e Add most Intel AVX2 instructions.
Reference: http://www.intel.com/software/avx rev11 spec

This is all AVX2 instructions except for VGATHER*/VPGATHER*, which
require additional ModRM handling.

Portions contributed by: Mark Charney <mark.charney@intel.com>

Part of [#227].
2011-07-03 14:36:37 -07:00
Peter Johnson
fc7724a3df pmovmskb/vpmovmskb: default operand size is 64 bits. 2011-07-03 12:48:46 -07:00
Peter Johnson
47f693fd89 Add Intel BMI1, BMI2, INVPCID, LZCNT instructions.
Reference: http://www.intel.com/software/avx rev11 spec

Also add appropriate CPU bits and directive handling for these.

Currently we have no good way of handling an "or" of instruction bits
(in this case needed for LZCNT, where it's either AMD or LZCNT).  For
now, make it LZCNT only.

Contributed by: Mark Charney <mark.charney@intel.com>

Part of [#227].
2011-07-03 01:48:44 -07:00
Peter Johnson
0614dede9b x86/gas: Fix no-suffix push and pop.
Previously plain "push" and "pop" would always generate a 16-bit pop
(for effective address versions).

Reported by: Alexei Svitkine

[#212 state:resolved]
2011-07-02 17:11:10 -07:00
Peter Johnson
f12d030f90 Add test for 64-bit shr/shl. 2011-07-02 16:28:29 -07:00
Peter Johnson
5d5ad1d91c Allow 64-bit LFS/LGS/LSS.
[#229 state:resolved]
2011-06-27 23:48:28 -07:00
Peter Johnson
de38127f1c Fix "times" relocation handling.
Previously a line such as "times 4 mov rax, [rel foobar]" would result
in incorrect relocations being generated.

Patch by: bird-yasm@anduin.net

[#211 state:resolved]
2011-06-25 23:32:22 -07:00
Peter Johnson
ac59d2353b Fix cython.m4 for beta versions of Cython.
[#204 state:resolved]
2011-06-25 15:09:03 -07:00
Peter Johnson
2f6162a0ae Fix build with recent Cython.
[#216 state:resolved]
2011-06-25 14:58:27 -07:00
Peter Johnson
19d85dfe84 Fix #263: Add quotes to yasm.rules switches. 2011-06-20 23:32:27 -07:00
Peter Johnson
b96cc7d9b2 Fix escaping at end of gas string constant.
Patch by: Daniel Diaz <Daniel.Diaz@univ-paris1.fr>
2011-05-29 15:29:15 -07:00
Peter Johnson
3bf0ed3927 Fix lar and lsl second operand size.
Also support 32-bit second operand for extra compatibility against ISA
documentation, although only the low 16 bits are used.

Fixes #261.
2011-05-29 13:14:22 -07:00
Jari Aalto
49c9e09429 frontends/yasm/yasm.xml: Use GNU layout and put --help option to the end
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Peter Johnson <peter@tortall.net>
2011-05-29 12:56:17 -07:00
Peter Johnson
1143fb7520 Fix test failure due to build environment.
When YASM_TEST_SUITE environment is defined, force version to "yasm
HEAD" and all yasm__getcwd() calls to return "./".
2011-03-20 21:18:01 -07:00
Brian Gladman
db258a7b50 1. Tidy up VS 2010 build
2. Set correct VS tool path on win32 systems

svn path=/trunk/yasm/; revision=2368
2011-01-29 10:50:25 +00:00
Peter Johnson
65f6f7a1ff Fix #223: Correctly handle "./" paths in dwarf2.
As dwarf2 has a directory table in addition to a filename table, we split
the provided pathname when generating the filename table.  This correctly
combined both "./foo" and "foo" into a single filename table entry.
However, we were only matching on pathname instead of dir+filename when
actually generating the dwarf opcodes, resulting in not finding the "./foo"
version.  Fix to check both dir and filename separately, splitting the same
way we do when generating the filename table.

svn path=/trunk/yasm/; revision=2367
2010-09-06 19:33:25 +00:00
Peter Johnson
5355299056 Improve gas syntax .set directive to better match GNU as behavior.
- Add support for deferred symbols (those which depend on other symbols
  that have not yet been .set)
- Add support for re-defining symbols
- Add support for 0x hex notation in literals

Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2366
2010-08-21 07:32:54 +00:00
Peter Johnson
bafc905860 coff: Add support for gas .secrel32 directive.
svn path=/trunk/yasm/; revision=2365
2010-08-18 06:23:30 +00:00
Peter Johnson
7263e1d241 Implement yasm_value_finalize_expr() using yasm_value_finalize().
Previously this was implemented the opposite way, contrary to its
documentation.  This resulted in clearing any already set yasm_value
relative fields.

svn path=/trunk/yasm/; revision=2364
2010-08-18 06:23:06 +00:00
Peter Johnson
50017b49af Add prototype for yasm_dv_get_value().
svn path=/trunk/yasm/; revision=2363
2010-08-18 06:21:34 +00:00
Peter Johnson
72df1b52a2 Add yasm_dv_get_value() to get yasm_value from yasm_dataval.
svn path=/trunk/yasm/; revision=2362
2010-08-18 06:21:08 +00:00
Peter Johnson
2f82e3a7ba coff dir_def(): Use symtab_use() instead of symtab_get().
svn path=/trunk/yasm/; revision=2361
2010-08-17 05:36:18 +00:00
Peter Johnson
5fb3213be3 coff/win32/win64: Add support for .def, .scl, .type, and .endef directives.
These can be used to set a specific value for the coff sclass and type
symbol fields.

svn path=/trunk/yasm/; revision=2360
2010-08-17 05:32:46 +00:00
Peter Johnson
985038f102 dwarf2: Add support for .loc "discriminator" option.
svn path=/trunk/yasm/; revision=2359
2010-08-16 02:28:36 +00:00
Peter Johnson
2678cb3c3a gas: Fix movsw/movzw memory operand encodings.
The register versions worked okay due to size matching, but the memory
versions relied on suffix matching, which wasn't being generated correctly.

Reported by: Tony Goelz <cag@absoft.com>

svn path=/trunk/yasm/; revision=2358
2010-08-14 02:26:41 +00:00
Peter Johnson
3ef8f426d7 Bump trunk internal version to 1.1.99.
svn path=/trunk/yasm/; revision=2351
2010-08-06 08:14:51 +00:00
Peter Johnson
0d3b3797e5 Fix #213: Fix gas-preproc misuse of strcpy() and uninitialized variables.
- strcpy() was being used with overlapping memory ranges; switched to memmove().
- bline->line_number was not set in one location.

Exact causes identified using valgrind.

svn path=/trunk/yasm/; revision=2348
2010-08-01 17:44:56 +00:00
Peter Johnson
a0a5404f14 win32: Make external safeseh work again (broken in [2343]).
svn path=/trunk/yasm/; revision=2347
2010-08-01 17:31:12 +00:00
Peter Johnson
f288243be4 Rename RDRND feature bit to RDRAND.
svn path=/trunk/yasm/; revision=2346
2010-08-01 01:37:37 +00:00
Peter Johnson
abaf3f7d49 macho32: Correctly output pc-relative non-external intersegment.
Reported by: Justin Lebar <justin.lebar@gmail.com>

svn path=/trunk/yasm/; revision=2345
2010-08-01 01:27:40 +00:00
Peter Johnson
a4024ab0ca macho: Fix relocation table file location.
svn path=/trunk/yasm/; revision=2344
2010-08-01 01:05:04 +00:00
Peter Johnson
86534657f2 Fix #139: Fix a number of issues with win32 safeseh support.
- Always create a non-global absolute symbol @feat.00 with value of 1.
- Set type field to 0x20 (function) for safeseh-declared symbols.
- Force safeseh-declared symbols into the symbol table, but don't force
  them to be global.

svn path=/trunk/yasm/; revision=2343
2010-07-31 10:17:05 +00:00
Brian Gladman
71afeff2eb Remove some causes of unnecessary rebuilds on Windows (VC10 only)
svn path=/trunk/yasm/; revision=2342
2010-07-27 18:20:22 +00:00
Peter Johnson
ea41f1e4e5 gen_x86_insn.py: Add SMX to list of ordered_cpu_features.
svn path=/trunk/yasm/; revision=2340
2010-07-23 03:36:01 +00:00
Peter Johnson
b716897f33 Fix #211: Add INVEPT, INVVPID, and GETSEC instructions.
INVEPT and INVVPID is enabled via the "eptvpid" cpu feature.
GETSEC is enabled via the "smx" cpu feature.

svn path=/trunk/yasm/; revision=2339
2010-07-23 03:35:21 +00:00
Peter Johnson
472838271c Fix #212: Set LC_SEGMENT vmsize correctly.
svn path=/trunk/yasm/; revision=2338
2010-07-23 03:08:24 +00:00
Peter Johnson
548f983552 Add support for XSAVEOPT instruction.
Reported by: Mark Charney <mark.charney@intel.com>

svn path=/trunk/yasm/; revision=2337
2010-07-03 19:48:00 +00:00
Peter Johnson
81c903cd70 Add Intel post-32nm processor instructions (section 7 of AVX spec).
Contributed by: Mark Charney <mark.charney@intel.com>

svn path=/trunk/yasm/; revision=2336
2010-07-03 02:29:22 +00:00
Peter Johnson
1227dda3c3 Remove AMD CVT16 instructions.
Per http://sourceware.org/ml/binutils/2009-11/msg00372.html, this has been
removed from GNU as.

Several instructions also conflict with the latest Intel AVX instructions.

svn path=/trunk/yasm/; revision=2335
2010-07-02 21:27:43 +00:00
Peter Johnson
ff8d0e0909 Fix #207: Don't emit unnecessary REX.W for pinsrw.
svn path=/trunk/yasm/; revision=2334
2010-06-16 05:22:17 +00:00
Peter Johnson
d190d9dfa5 Fix #206: Update gettext bits to gettext 0.17.
svn path=/trunk/yasm/; revision=2333
2010-06-16 05:13:23 +00:00
Brian Gladman
1c6ad1742b Minor update to the Visual Studio 2010 build files
svn path=/trunk/yasm/; revision=2332
2010-06-08 17:12:48 +00:00
Brian Gladman
af34e08058 svn path=/trunk/yasm/; revision=2331 2010-06-08 16:30:52 +00:00
Brian Gladman
c766e43831 Add an environment variable YASMPATH to override the default vsyasm directory
svn path=/trunk/yasm/; revision=2330
2010-05-27 13:26:23 +00:00
Brian Gladman
3a14d898b2 correct reported error in vsyasm.xml
svn path=/trunk/yasm/; revision=2329
2010-05-27 08:46:46 +00:00
Brian Gladman
e5b53cf7e6 change vsyasm property sheet to use an absolute path to vsyasm (as msbuild requires)
svn path=/trunk/yasm/; revision=2328
2010-05-24 08:37:45 +00:00
Peter Johnson
104dba1981 Fix #201: explicitly ignore [warning] directive and treat as warning.
svn path=/trunk/yasm/; revision=2323
2010-05-16 03:37:00 +00:00
Peter Johnson
6c7cc8ef76 Support all unary operators in directive expressions.
svn path=/trunk/yasm/; revision=2322
2010-05-16 03:14:09 +00:00
Peter Johnson
d5ae195703 Fix #202 (incorrect GOT offset generated in NASM mode).
Don't generate an additional offset for _GLOBAL_OFFSET_TABLE_ if a WRT was
specified (the NASM usage).  In GAS, _GLOBAL_OFFSET_TABLE_ doesn't have a WRT
but instead has special handling.

This isn't quite *exactly* the right fix; a better fix would be to recognize
the _GLOBAL_OFFSET_TABLE_ case in the GAS parser and adjust the value
appropriately there.  However, this fix seems to do the right thing in the
meantime for both GAS and NASM cases.

svn path=/trunk/yasm/; revision=2321
2010-05-15 07:45:48 +00:00
Peter Johnson
4003fa1bc0 Update frontend --version copyright dates.
svn path=/trunk/yasm/; revision=2317
2010-04-08 06:10:16 +00:00
Peter Johnson
34379be2ad COPYING: Update credits a bit.
svn path=/trunk/yasm/; revision=2314
2010-04-08 05:57:28 +00:00
Peter Johnson
e2e877c615 Update copyright dates.
svn path=/trunk/yasm/; revision=2313
2010-04-08 05:56:33 +00:00
Peter Johnson
bc3a8286ea NASM preproc: Add basic support for %{x:y} parameter list expansion.
Contributed by: Mathieu Monnier

nasm64developer has a more advanced 3-parameter version that will take
some time to integrate, so for now just provide the simpler version.

svn path=/trunk/yasm/; revision=2312
2010-04-08 03:46:43 +00:00
Peter Johnson
2de9ac8ede NASM preprocessor: Add %scope and %endscope.
Contributed by: Mathieu Monnier

svn path=/trunk/yasm/; revision=2311
2010-04-08 03:32:04 +00:00
Peter Johnson
323153d55a Instead of initializing unknown sections en-masse during objfmt_output(),
add new objfmt interface function init_new_section() to initialize as we
go.

This fixes several issues, primarily with debug formats that create sections.

Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=2310
2010-03-28 19:28:54 +00:00
Peter Johnson
e56ece9a7d vsyasm: Allow override of object, list, and map file extensions.
svn path=/trunk/yasm/; revision=2309
2010-03-19 23:00:36 +00:00
Peter Johnson
e55891a302 vsyasm: Fix map extension.
svn path=/trunk/yasm/; revision=2308
2010-03-19 22:46:16 +00:00
Brian Gladman
293d7392b4 Improve VSYASM integration into Visual Studio 2010
svn path=/trunk/yasm/; revision=2307
2010-03-10 11:33:55 +00:00
Peter Johnson
d7c5571bcb vsyasm: if -E is used, print command line as first line in error file.
Requested by: Brian Gladman

svn path=/trunk/yasm/; revision=2300
2010-03-04 05:13:48 +00:00
Peter Johnson
47b7b364c7 Makefile.am: Update for [2297] changes.
svn path=/trunk/yasm/; revision=2299
2010-03-04 05:08:00 +00:00
Brian Gladman
7b10030105 Adjust YASM integration into Visual Studio 2010 slightly
svn path=/trunk/yasm/; revision=2298
2010-03-03 10:31:37 +00:00
Brian Gladman
d7ca41bfa8 Add VSYASM integration files for Visual Studio 2010 (and remove incorrect YASM ones)
svn path=/trunk/yasm/; revision=2297
2010-03-03 09:41:12 +00:00
Brian Gladman
ed58136605 Correction to Python detection on Windows
svn path=/trunk/yasm/; revision=2296
2010-02-25 11:47:02 +00:00
Brian Gladman
e062b3c456 Yet one more attempt to find Python in Windows
svn path=/trunk/yasm/; revision=2295
2010-02-25 10:57:07 +00:00
Brian Gladman
40ab77b4d0 Make a further attempt to use the Windows registry to find Python
svn path=/trunk/yasm/; revision=2294
2010-02-24 11:26:40 +00:00
Brian Gladman
e6fd6d7af1 correct error in python detection batch file
svn path=/trunk/yasm/; revision=2293
2010-02-23 08:56:20 +00:00
Brian Gladman
c85781d095 Hopefully remove python discovery issue in Windows build
svn path=/trunk/yasm/; revision=2292
2010-02-23 08:15:43 +00:00
Peter Johnson
d28f2a03a7 vsyasm: More gracefully handle single input file by using output name as-is.
Patch by: Brian Gladman

svn path=/trunk/yasm/; revision=2291
2010-02-19 07:07:51 +00:00
Peter Johnson
03de198f09 Add vc10 and vsyasm build files to EXTRA_DIST.
svn path=/trunk/yasm/; revision=2290
2010-02-17 06:33:26 +00:00
Brian Gladman
b2d1f3fe4b Update Visual Studio 2010 build files
svn path=/trunk/yasm/; revision=2289
2010-02-15 10:45:22 +00:00
Brian Gladman
03a71a10e4 1. Add vsyasm build to VC9 and vc10 builds
2. Improve search for Python interpreter

svn path=/trunk/yasm/; revision=2288
2010-02-13 19:26:44 +00:00
Peter Johnson
c699637602 vsyasm: create intermediate output directories if necessary.
This feature is apparently assumed by MSBUILD.

Contributed (with minor modifications) by: Brian Gladman

svn path=/trunk/yasm/; revision=2287
2010-02-13 08:42:27 +00:00
Peter Johnson
11a71a15f9 Update yasm_parsers(7) now that GAS preprocessor support is fairly mature.
svn path=/trunk/yasm/; revision=2286
2010-02-13 07:25:23 +00:00
Peter Johnson
74e776b0f6 Add support for gas preprocessor macro directives.
It doesn't yet support the full set of macro types gas supports, but
can handle a lot of common cases.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2285
2010-02-13 07:22:23 +00:00
Peter Johnson
463f4d7963 Add "vsyasm", a batch version of yasm primarily useful for VS2010.
Basically the objfile, listfile, and mapfile options specify output
directories instead of files.  Multiple files are accepted and each one
is independently assembled in command line order.  All options (such
as include directories and predefined macros) apply to all input files.
Any error terminates the process early.

Suggested by: Brian Gladman

svn path=/trunk/yasm/; revision=2284
2010-02-06 09:27:32 +00:00
Peter Johnson
419e16fc71 nasm_pp_cleanup(): Do a better job of cleaning up.
svn path=/trunk/yasm/; revision=2283
2010-02-06 09:13:56 +00:00
Peter Johnson
702da8cc55 Update flat and DJGPP Makefiles for GAS preproc and parser changes.
svn path=/trunk/yasm/; revision=2282
2010-01-20 03:58:15 +00:00
Brian Gladman
d9bfa3d26f Update VC++ v10 build
svn path=/trunk/yasm/; revision=2281
2010-01-19 11:11:35 +00:00
Brian Gladman
3097cd1ad0 Update VC++ v9 build
svn path=/trunk/yasm/; revision=2280
2010-01-19 11:09:21 +00:00
Peter Johnson
cb7f1a254c Add .intel_syntax and .gas_syntax support to GAS parser.
Uses the NASM parser for the .intel_syntax parsing heavy lifting.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2279
2010-01-19 07:57:43 +00:00
Peter Johnson
14888572a6 Add nasm-parser-struct.h to SOURCES.
svn path=/trunk/yasm/; revision=2278
2010-01-19 07:28:08 +00:00
Peter Johnson
7d6b1a0ae4 Nasm parser: Add some very basic MASM-ish syntax handling, along the lines
of the TASM "mode".

These code paths aren't used yet; they will be used for GAS .intel_syntax
handling.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2277
2010-01-19 07:03:15 +00:00
Peter Johnson
d965ef7d7a Split yasm_parser_nasm structure out to separate header.
This is needed so that other parsers can get access to this structure without
naming conflicts.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2276
2010-01-19 06:56:08 +00:00
Peter Johnson
d61b43941d Allow gas flags input to bin objfmt (ignored and not used).
Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2275
2010-01-14 08:24:13 +00:00
Peter Johnson
26c7e74729 substitute_values(): Allocate sufficient space for null terminator.
Noticed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2274
2010-01-14 08:10:35 +00:00
Peter Johnson
e7185d2e24 gas-preproc.c: Use sprintf instead of snprintf.
It's impossible for a decimal long string to be longer than 64 chars.

Also remove workaround for MSVC added in r2267.

svn path=/trunk/yasm/; revision=2273
2010-01-13 04:44:28 +00:00
Peter Johnson
cc6301d9ce Allow older automake version (1.9.6).
svn path=/trunk/yasm/; revision=2272
2010-01-12 05:59:37 +00:00
Brian Gladman
12d3a8f642 Fix #200 - yasm.rules double quote issue
svn path=/trunk/yasm/; revision=2271
2010-01-08 09:50:52 +00:00
Brian Gladman
9dbb4aa480 "Fix #200" - yasm.rules double quote issue
svn path=/trunk/yasm/; revision=2270
2010-01-08 09:47:46 +00:00
Peter Johnson
c30e4abfd3 Update autoconf/automake scripts.
Also remove ltmain.sh as we no longer use libtool.

Patch submitted by: Roumen Petrov <bugtrack@roumenpetrov.info>

svn path=/trunk/yasm/; revision=2269
2010-01-07 07:00:05 +00:00
Peter Johnson
553e615b56 Unbreak make distcheck.
svn path=/trunk/yasm/; revision=2268
2010-01-07 06:55:03 +00:00
Brian Gladman
ed1ff0ef26 1. Add gas preprocessor build on Windows
2. Add snprintf -> _snprintf define for VC++ build

svn path=/trunk/yasm/; revision=2267
2010-01-05 16:01:53 +00:00
Peter Johnson
fd03e1eef5 Now that the gas preproc supports .rept, remove it from the gas parser.
svn path=/trunk/yasm/; revision=2266
2010-01-03 22:02:30 +00:00
Peter Johnson
6ede18e881 GAS preproc: Fix line number for .rept without matching .endr error.
The line number reported for the error is that of the .rept directive.

Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2265
2010-01-03 21:59:28 +00:00
Peter Johnson
737c225a50 Update Pyxelator to avoid deprecation warnings on recent Python versions.
svn path=/trunk/yasm/; revision=2264
2010-01-03 03:47:16 +00:00
Peter Johnson
8500270339 bin-objfmt.c: Comment out unused function (kept in the code for debugging).
svn path=/trunk/yasm/; revision=2263
2010-01-03 02:47:28 +00:00
Peter Johnson
e8ff41cac1 Fix two more instances of queue.h HEAD macros for portability.
svn path=/trunk/yasm/; revision=2262
2010-01-03 02:46:11 +00:00
Peter Johnson
5ce81be7fe gas-preproc.c: Avoid warning on unused variable.
svn path=/trunk/yasm/; revision=2261
2010-01-03 02:41:50 +00:00
Peter Johnson
bf8e6be2a9 Improve the gas preprocessor and re-add it as default for gas parser.
Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

Summary of changes:
- Correct line numbers will now be reported for warnings and errors
  when using the GAS preprocessor
- GAS preprocessor will now replace defined (e.g. via .set) variables
  by their values in lines returned to the parser
- GAS preprocessor will now handle multi-line comments correctly
- GAS preprocessor will now handle nested .rept directives correctly

svn path=/trunk/yasm/; revision=2260
2010-01-03 02:04:13 +00:00
Peter Johnson
b3d84a8148 Implement some linemap changes required for the GAS preprocessor.
Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

- yasm_linemap_set() now takes virtual_line as a parameter, instead of
always using linemap->current. If 0 is passed for the virtual_line,
then linemap->current is used, as before.

This is because linemap->current was only incremented by the parser
(and never decremented), so the preprocessor was not able to set
mappings during the preprocessing phase (whereas with these changes,
it now does).

Additionally, setting a mapping for a line number will now delete any
existing mappings for line numbers equal or greater to that line
number. This allows the code to correctly handle the case when the
preprocessor first sets mappings from pre-pp lines to post-pp lines,
and later those mappings getting superseded by .line directives in the
original source.

This change also required making a change to yasm_linemap_lookup() to
set *file_line to 0 when line is 0 (i.e. preventing line 0 - which
means "don't display line number in output" - from getting mapped).

svn path=/trunk/yasm/; revision=2259
2010-01-03 01:58:23 +00:00
Peter Johnson
5501768adb Use queue.h HEAD macros more portably (also avoiding compiler warning).
svn path=/trunk/yasm/; revision=2258
2010-01-03 01:04:18 +00:00
Peter Johnson
40f06c1275 Fix additional cases of duplicate 66h prefix generation for AVX instructions.
Reported by: Gil Dabah

svn path=/trunk/yasm/; revision=2257
2010-01-02 17:56:16 +00:00
Peter Johnson
fcb228f18c Use Cython instead of Pyrex.
svn path=/trunk/yasm/; revision=2256
2010-01-01 20:55:07 +00:00
Peter Johnson
f608f67ad2 Some minor Pyrex fixes:
- Don't return self in IntNum.__abs__ (return a copy instead).
- yasm_sym_status enum values have YASM_ prefixes.

svn path=/trunk/yasm/; revision=2255
2010-01-01 20:54:15 +00:00
Peter Johnson
4df9f87323 All Pyrex files: Use __cinit__ instead of __new__ in extension classes.
svn path=/trunk/yasm/; revision=2254
2010-01-01 20:52:25 +00:00
Peter Johnson
b70e2373f7 yasm_intnum_create_sized(): Fix off-by-one error in sign extension check.
svn path=/trunk/yasm/; revision=2253
2010-01-01 20:47:58 +00:00
Peter Johnson
65b18427f4 Unbreak python bindings on 64-bit Linux.
svn path=/trunk/yasm/; revision=2252
2009-12-30 06:21:24 +00:00
Peter Johnson
3888758ce3 Avoid generating duplicate 66h prefix on PINSRB in 16-bit mode.
Reported by: Gil Dabah <arkon@ragestorm.net>

svn path=/trunk/yasm/; revision=2251
2009-12-29 06:18:25 +00:00
Peter Johnson
f7ba1c6647 Revert gas parser default to raw preproc until gas tests pass with the gas
preproc.

svn path=/trunk/yasm/; revision=2250
2009-12-28 05:23:46 +00:00
Peter Johnson
ba15a13ef0 Fix incorrect vaesimc encoding (need to set VEX.vvvv=1111).
Reported by: Gil Dabah <arkon@ragestorm.net>

svn path=/trunk/yasm/; revision=2249
2009-12-28 04:40:30 +00:00
Peter Johnson
27e105a07f Fix --preproc-only (and possibly other long options) by avoiding false
matches on shorter long argument names.

Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2248
2009-12-26 04:41:21 +00:00
Peter Johnson
a530673198 gas-preproc.c: Avoid casting away of const.
svn path=/trunk/yasm/; revision=2247
2009-12-26 04:38:27 +00:00
Peter Johnson
7a6e9cb430 Update gas preproc a bit:
- Handle removal of comments during preprocessing
- Fix a bug with evaluation of nested .if/.else statements.

Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2246
2009-12-26 04:30:39 +00:00
Peter Johnson
9f471a9ba9 nasm-pp.c: Use vsnprintf if available.
Patch contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2245
2009-12-26 04:28:40 +00:00
Peter Johnson
b0fb3fd160 Default to gas preproc for gas parser.
svn path=/trunk/yasm/; revision=2244
2009-12-26 04:26:46 +00:00
Peter Johnson
493c5b8861 Add initial gas preprocessor, contributed by Alexei Svitkine.
Support for include directive amongst other major key pieces.
Does not currently support macros.
Fixes #79.

Contributed by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2243
2009-12-23 06:45:17 +00:00
Peter Johnson
9f91d82b07 Unbreak gen_x86_insn.py on Python 2.4.
Patch by: Alexei Svitkine <alexei.svitkine@gmail.com>

svn path=/trunk/yasm/; revision=2242
2009-12-06 03:37:43 +00:00
Brian Gladman
4db0d17f64 Add files for building YASM with Visual Studio 2010 (beta 2)
svn path=/trunk/yasm/; revision=2241
2009-12-05 16:33:12 +00:00
Brian Gladman
abef3a711d Update gen_x86_insn.py to work in both Python 2 and 3
svn path=/trunk/yasm/; revision=2240
2009-12-05 16:13:05 +00:00
Peter Johnson
c89b661925 Fix #198: Previous commit accidentally broke a great many instructions.
svn path=/trunk/yasm/; revision=2239
2009-12-01 03:33:03 +00:00
Peter Johnson
ad1280030c Fix a bunch of GAS x86 instruction issues.
- Fix #193: ljmp/lcall not implemented; add 2-operand far jump to jmp/call.
- Add loop{,z,e} instruction suffixes
- Fix a bunch of jmp/call minor issues.
- Vastly improve suffix handling in general to make more consistent and make
  a greater variety of no-suffix instructions work in a way that matches GAS.

svn path=/trunk/yasm/; revision=2238
2009-11-30 03:43:10 +00:00
Peter Johnson
32b5671cf0 Fix #191: Incorrect argument order generated for AMD FMA4 opcodes.
svn path=/trunk/yasm/; revision=2237
2009-11-08 17:30:34 +00:00
Peter Johnson
10b0c9214b Fix #190: Incorrect opcode generated for vphaddudq.
svn path=/trunk/yasm/; revision=2236
2009-11-08 17:14:01 +00:00
Peter Johnson
29ad858dad Fix #189: Avoid compiler warning in genperf.
svn path=/trunk/yasm/; revision=2235
2009-11-03 05:15:37 +00:00
Peter Johnson
4e15ef1cc9 Fix #187: Add new variable CFLAGS_FOR_BUILD for CC_FOR_BUILD compiles.
Due to the need to support cross-building, CC_FOR_BUILD is used instead of
CC for tools that will be run as part of the build process.  However, it
is sometimes necessary to add custom CFLAGS for these builds; CFLAGS_FOR_BUILD
supports this cleanly.

svn path=/trunk/yasm/; revision=2234
2009-10-31 21:52:42 +00:00
Peter Johnson
e15ad1b94b Fix #188: Times forward references would result in bad code generation.
svn path=/trunk/yasm/; revision=2233
2009-10-31 21:45:55 +00:00
Peter Johnson
d9e4f1bc19 Fix #78 further: Support C++ style // comments.
svn path=/trunk/yasm/; revision=2232
2009-09-12 02:38:35 +00:00
Brian Gladman
f3f0f20466 Further change to python invocation in genperf
svn path=/trunk/yasm/; revision=2231
2009-08-12 14:51:57 +00:00
Brian Gladman
de776f46ea improve handling of Python batch file for genperf
svn path=/trunk/yasm/; revision=2230
2009-08-12 14:33:52 +00:00
Peter Johnson
7a0082c94d Fix #186: Avoid memory runaway in optimizer TIMES circular reference checking.
Check for duplicates in backtrace used when checking for circular references.
This uses a simple N^2 algorithm (as the number of items in the backtrace is
usually small) but avoids memory runaway due to duplicate item storage.

svn path=/trunk/yasm/; revision=2229
2009-08-06 07:13:11 +00:00
Peter Johnson
47d7fbf513 Fix #185: Add mkinstalldirs to svn repo, as autogen.sh doesn't pull it in.
svn path=/trunk/yasm/; revision=2227
2009-07-31 02:50:19 +00:00
Peter Johnson
b5f0a4008c Fix #184: test -e is not portable (despite being in POSIX); use test -f instead.
svn path=/trunk/yasm/; revision=2226
2009-07-30 02:19:38 +00:00
Peter Johnson
0e0556cc9d Unbreak distcheck.
svn path=/trunk/yasm/; revision=2224
2009-07-25 05:29:47 +00:00
Peter Johnson
dd7c64f68a Fix #178: Don't "distribute" shift right op.
This breaks horribly for things like (sym+511)>>9 in -f bin, as the result is
zero instead of something more useful.

Also don't check RHS for symbols; these will fall out later in the assembly
process if they cannot be simplified.

svn path=/trunk/yasm/; revision=2220
2009-07-24 19:01:35 +00:00
Peter Johnson
c2dce0a354 Update elf special symbols:
- Add tlsdesc and tlscall to both x86 and amd64.
 - Add 64-bit pltoff, gotplt, gotoff to amd64.

svn path=/trunk/yasm/; revision=2210
2009-07-22 05:51:35 +00:00
Peter Johnson
948d59417b Unbreak make check (broken by [2206]).
svn path=/trunk/yasm/; revision=2209
2009-07-22 05:49:54 +00:00
Peter Johnson
fbb1fd248d elf: Add latest x86 relocation types.
svn path=/trunk/yasm/; revision=2208
2009-07-22 05:45:03 +00:00
Peter Johnson
0f373ef2ae elf: Add support for 64-bit PC-relative relocation.
svn path=/trunk/yasm/; revision=2207
2009-07-21 06:49:44 +00:00
Peter Johnson
6f329fb107 Special-case _GLOBAL_OFFSET_TABLE_ in elf32/64 to generate appropriate relocs.
This was particularly noticable in GAS, but there was also a bug in NASM
output (lack of fixup within instruction in elf32).

Also:
- changed ssym lookup from a linear search to using assocdata
- added more relocation types (most not implemented)

Reported by: Mark Charney

svn path=/trunk/yasm/; revision=2206
2009-07-21 06:48:42 +00:00
Peter Johnson
2e2dbcd04f NASM is now licensed under the 2-clause BSD license.
svn path=/trunk/yasm/; revision=2205
2009-07-20 06:04:58 +00:00
Peter Johnson
d69ce714c1 Fix #177: Make check fails on CR/LF systems.
The diff on the hexdump output was not using -w.

svn path=/trunk/yasm/; revision=2204
2009-07-18 02:33:10 +00:00
Peter Johnson
db5f343748 Fix #175: Only sanity check final section size if no user errors occurred.
svn path=/trunk/yasm/; revision=2203
2009-06-12 07:06:16 +00:00
Peter Johnson
a498736454 Fix #173: Debug full paths were being generated incorrectly.
This was because the path returned by yasm__getcwd() did not have a trailing
slash and thus yasm__combpath() stripped off the last path component.

svn path=/trunk/yasm/; revision=2202
2009-06-03 05:49:18 +00:00
Peter Johnson
9752153285 Fix #171: Broken build in ytasm CMakeLists.txt.
Reported by: postmodern.mod3

svn path=/trunk/yasm/; revision=2201
2009-05-12 01:47:59 +00:00
Peter Johnson
f91196bc8a CMakeLists.txt: Set cmake policy to avoid warning.
svn path=/trunk/yasm/; revision=2200
2009-05-12 01:46:42 +00:00
Peter Johnson
93c4d75fb2 Add support for AMD XOP, FMA4, and CVT16 instructions (replacing SSE5).
AMD has obsoleted the SSE5 spec in favor of these instructions.  These
instructions use an AVX-like new opcode structure called XOP instead of
the SSE5 DREX byte.

The AMD FMA4 instructions are a copy of the *old* Intel FMA instructions.
Intel has since updated their spec, and AMD may follow, but for now we've
implemented what AMD's spec contains.

svn path=/trunk/yasm/; revision=2199
2009-05-10 05:24:46 +00:00
Peter Johnson
e3b6f5bc9b Add gencheck.py Python script to make it easier to generate expected results
from long .asm files that generate simple binary output (e.g. for opcode
testing).

svn path=/trunk/yasm/; revision=2198
2009-05-10 05:21:26 +00:00
Peter Johnson
bccb81d575 tasm (tweaked nasm) preproc fixes:
- comments stripped before tokenization caused strings containing ';'
   to generate warnings (unterminated string) and incorrect output.
 - assume directive parsing did not properly handle ';' as end of line

Also add tests for the above.

Reported by: Rugxulo <rugxulo@gmail.com>

svn path=/trunk/yasm/; revision=2197
2009-04-17 03:25:08 +00:00
Peter Johnson
88ffc99804 tasm parser: Support "not" keyword.
Requested by: Rugxulo <rugxulo@gmail.com>

svn path=/trunk/yasm/; revision=2196
2009-04-17 03:22:25 +00:00
Peter Johnson
8bc9e295a5 Default memory size to "s" for no-suffix FP conversions in GAS syntax.
Reported by: Gregory McGarry <g.mcgarry@ieee.org>

svn path=/trunk/yasm/; revision=2192
2009-03-29 23:25:05 +00:00
Peter Johnson
ff21f3e607 Fix referencing of local label from line that defines nonlocal label.
Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=2190
2009-03-25 03:40:59 +00:00
Peter Johnson
6ad55c80ee Update copyright dates.
svn path=/trunk/yasm/; revision=2188
2009-03-24 06:47:38 +00:00
Peter Johnson
338a832c34 Fix #155: Don't crash on missing %endmacro.
We were crashing because we didn't generate this error until the preproc
module was getting cleaned up, which doesn't happen until after linemap
is cleaned up.  Instead detect and output this error when we reach the end
of preprocessed tokens during the parsing stage.

svn path=/trunk/yasm/; revision=2185
2009-03-24 06:33:32 +00:00
Peter Johnson
73276e64a8 Remove vc7 and vc8 build files, as they're no longer being maintained.
There's a Python script (vc98_swap.py) in the Mkfiles/vc9 directory for
those who want to build with vc8.

svn path=/trunk/yasm/; revision=2184
2009-03-24 05:04:15 +00:00
Peter Johnson
bf635274b1 Rename tasm to ytasm in Unix builds.
We aren't compatible enough to call ourselves the "real" one.

svn path=/trunk/yasm/; revision=2183
2009-03-24 04:58:46 +00:00
Peter Johnson
4d2de8713a Update code generated for alignment padding for more recent processors.
Also match GAS behavior by using different NOP sequences for AMD and Intel.
Different "Long" NOP opcode sequences are used based on the below criteria.

Defaults in 32-bit mode:
 - CPU directive not used: backwards compatible (no long NOP opcodes)
 - CPU directive with Intel CPU >= 686: Intel guidelines, using long NOPs
 - CPU directive with AMD CPU >= K6: AMD guidelines, using long NOPs

Defaults in 64-bit mode:
 - CPU directive not used: Intel guidelines, using long NOPs
 - CPU directive with Intel CPU >= 686: Intel guidelines, using long NOPs
 - CPU directive with AMD CPU >= K6: AMD guidelines, using long NOPs

The above defaults may be overridden with these options to the CPU directive:
 - CPU basicnop: backwards compatible (no long NOP opcodes)
 - CPU intelnop: Intel guidelines, using long NOPs
 - CPU amdnop: AMD guidelines, using long NOPs

Suggested by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2181
2009-03-20 07:36:49 +00:00
Peter Johnson
b22c1896f7 Use arrays instead of strings to store NOP fill.
svn path=/trunk/yasm/; revision=2180
2009-03-20 05:24:16 +00:00
Brian Gladman
1bdcac64ad Add (but don't enable) AMD K10 alignment padding data
svn path=/trunk/yasm/; revision=2179
2009-03-18 19:57:37 +00:00
Brian Gladman
b39e06bc94 Update yasm.rules file for VC++
svn path=/trunk/yasm/; revision=2178
2009-03-06 09:18:56 +00:00
Peter Johnson
ccac72fdb3 Remove renamed tasm.vcproj (as of [2175] it is ytasm.vcproj).
Add to distribution files.

svn path=/trunk/yasm/; revision=2177
2009-03-04 07:41:59 +00:00
Peter Johnson
92f63a58c7 Unbreak snapshots (broken in [2172]).
Noticed by: Mark Charney <mark.charney@intel.com>

svn path=/trunk/yasm/; revision=2176
2009-03-04 07:39:02 +00:00
Brian Gladman
963ded10cd Tidy up VC++ project names for ytasm
svn path=/trunk/yasm/; revision=2175
2009-02-26 09:58:33 +00:00
Brian Gladman
0c544ecff1 rename tasm for VC++
svn path=/trunk/yasm/; revision=2174
2009-02-25 18:33:05 +00:00
Peter Johnson
cd68034145 Add support for VEX-encoded pclmul*qdq instructions per the latest AVX spec.
To stay consist with handling of other VEX instructions, also add yasm
extensions to support combining the first two operands for direct translation
from non-VEX to VEX-encoded by simply adding a "v" prefix to the opcode.

Contributed by: Mark Charney, Intel Corporation <Mark.Charney@intel.com>
Yasm extensions by: Peter Johnson

svn path=/trunk/yasm/; revision=2173
2009-02-02 08:20:12 +00:00
Peter Johnson
b6c9134ac7 Fix #166: Off-by-one error in raw preproc caused hang on lines longer than
512 characters.

svn path=/trunk/yasm/; revision=2172
2009-01-27 06:38:14 +00:00
Peter Johnson
b1710263e9 Add file missed in previous commit.
Contributed by: Mark Charney, Intel Corporation

svn path=/trunk/yasm/; revision=2171
2009-01-14 08:34:22 +00:00
Peter Johnson
5624364e90 Update AVX and FMA to latest Intel specification (Dec 2008).
- Removed VPERMIL2 opcodes (VPERMIL2PS, VPERMIL2PD).
- Replaced 4-operand FMA instructions with completely new set of opcodes.

Contributed by: Mark Charney, Intel Corporation <mark.charney@intel.com>

svn path=/trunk/yasm/; revision=2170
2009-01-14 08:28:13 +00:00
Peter Johnson
ab1449c206 gas parser: Allow segment register prefixes before instructions.
svn path=/trunk/yasm/; revision=2169
2009-01-02 20:46:57 +00:00
Peter Johnson
7defbd57e6 gas parser: Allow equ's to be named the same as instructions.
svn path=/trunk/yasm/; revision=2168
2009-01-02 20:32:05 +00:00
Peter Johnson
cf56635ebf Remove long-obsolete "debug" flag from internal parser structures.
svn path=/trunk/yasm/; revision=2167
2009-01-02 08:36:09 +00:00
Peter Johnson
b7a38ed4fd Allow @ signs in identifiers in win32/win64 only.
In ELF, @ is used to indicate special relocations.

Fixes #164.

Reported by: Gregory McGarry on yasm-devel@
Testcase by: Gregory McGarry

We don't allow identifiers to start with @; doing so conflicts with use of
e.g. "@function" in some directives.  Need to look into what GAS does.

svn path=/trunk/yasm/; revision=2166
2009-01-02 08:33:21 +00:00
Peter Johnson
f8113755e5 elf-x86id.asm testcase: Don't require NASM preproc.
svn path=/trunk/yasm/; revision=2165
2009-01-02 08:15:58 +00:00
Peter Johnson
ff8b0ae836 Gas parser: Move instruction/prefix lookup from tokenizer to parser.
Use the single token of lookahead to detect the label case.

This is significantly cleaner as it removes the special-casing of labels
in the tokenizer (so there is just a single identifier rule) and removes
the INSTDIR parser state (as this was only used to prevent instruction
lookup within other locations).

Also, ID and LABEL now provide the string length to the parser.  We needed
to do this for ID due to parse_check_insnprefix() needing the length, so
both were folded in for consistency.

svn path=/trunk/yasm/; revision=2164
2009-01-02 07:27:39 +00:00
Peter Johnson
cdbf4a9434 gas-parse.c: Fix double-free on error.
svn path=/trunk/yasm/; revision=2163
2008-12-24 06:17:54 +00:00
Peter Johnson
3f620d2dcb Legalize effective addresses such as [eax*2+ebx*2-ebx].
These were incorrectly identified as invalid.  The code would see the
ebx*2 term and identify ebx as the index register.  After the ebx was
subtracted, the ebx remained in the index register slot, so eax*2 had
nowhere to go.  The code now recognizes this case and frees the slot
when the -ebx is processed, leaving the index register selection up
to the main part of the code.

svn path=/trunk/yasm/; revision=2162
2008-12-21 10:57:36 +00:00
Peter Johnson
6eaa345a2c Fix Mach-O alignment handling by aligning start and end of every section.
Reported and patch by: David DeHaven <dave@sagetv.com>

svn path=/trunk/yasm/; revision=2161
2008-12-07 02:49:22 +00:00
Peter Johnson
1af17712ca gen_x86_insn.py: Handle invalid rcstag.
This can happen if somehow this file is retrieved without expanded keywords
(e.g. directly from the webpage, or via something like git-svn).

Reported by: Patrick Walton <pcwalton@cs.ucla.edu>

svn path=/trunk/yasm/; revision=2160
2008-12-05 07:13:33 +00:00
Peter Johnson
36598c7334 Don't assume CPP_PROG is 3 characters long (e.g. "gcc -E" isn't).
Reported and fix submitted by: Mark Charney

svn path=/trunk/yasm/; revision=2159
2008-11-25 09:16:26 +00:00
Peter Johnson
bb1aaf9efd Fix #161: Don't require 0d/0e/0f/0t prefix on floating point numbers.
While this is not mentioned in the GAS documentation, GAS doesn't require it.

svn path=/trunk/yasm/; revision=2158
2008-10-30 07:36:25 +00:00
Peter Johnson
7b901e3596 Fix #157: Use UNIX (not Windows) path functions on cygwin platform.
svn path=/trunk/yasm/; revision=2157
2008-10-19 07:29:15 +00:00
Peter Johnson
2bcaa278be Add movbe instruction and CPU feature.
Noticed by: Mark Charney

svn path=/trunk/yasm/; revision=2156
2008-10-16 02:44:49 +00:00
Peter Johnson
dca3ebc625 Update Makefile.am for vc98_swap.py.
svn path=/trunk/yasm/; revision=2152
2008-10-09 04:37:12 +00:00
Brian Gladman
979cb9362e Change to Python for Visual Studio 2008/2005 conversion (vc98_swap.py in place of vc928.c)
svn path=/trunk/yasm/; revision=2151
2008-10-08 08:48:18 +00:00
Brian Gladman
0f79103a3f svn path=/trunk/yasm/; revision=2150 2008-10-08 08:41:55 +00:00
Brian Gladman
b2048de441 update Visual Studio 2008 build
svn path=/trunk/yasm/; revision=2149
2008-10-08 08:22:37 +00:00
Peter Johnson
2496ce652d Remove directory EXTRA_DIST; it seems to be making distcheck on ctn die.
svn path=/trunk/yasm/; revision=2140
2008-10-08 07:15:45 +00:00
Peter Johnson
a51609437b Use yasm functions yasm__strcasecmp and nasm_strdup instead of relying on
platform to have them.

Also, instead of using snprintf, preallocate and then use sprintf.  This
also avoids the while() reallocation loop.

Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=2139
2008-10-08 05:19:47 +00:00
Peter Johnson
90697b87e7 tasm.c: Don't include unistd.h.
svn path=/trunk/yasm/; revision=2138
2008-10-08 04:58:08 +00:00
Peter Johnson
a5a734f835 Add Samuel Thibault to list of contributors.
svn path=/trunk/yasm/; revision=2137
2008-10-07 06:22:58 +00:00
Peter Johnson
19b420b63c tasm frontend: Fix handling of options >2 chars long.
Use yasm__strncasecmp instead of manually lowercasing up to two characters.

svn path=/trunk/yasm/; revision=2136
2008-10-07 06:21:06 +00:00
Peter Johnson
0efccb5ad0 tasm frontend: Fix crash with plain /l option.
svn path=/trunk/yasm/; revision=2135
2008-10-07 06:16:57 +00:00
Peter Johnson
8986aa0764 Don't use tasm_compatible_mode in nasm parser (use local var instead).
Fix a few warnings while here.

svn path=/trunk/yasm/; revision=2134
2008-10-07 06:02:12 +00:00
Peter Johnson
536542a69e Fix a number of warnings.
svn path=/trunk/yasm/; revision=2133
2008-10-07 05:59:29 +00:00
Peter Johnson
d810f45f7c Add CMakeLists.txt for tasm frontend.
svn path=/trunk/yasm/; revision=2132
2008-10-07 05:47:08 +00:00
Peter Johnson
af8fcc98ca Update Mkfiles (except for VC) for TASM build.
svn path=/trunk/yasm/; revision=2131
2008-10-07 05:43:29 +00:00
Peter Johnson
1e77ce6c40 Add core TASM syntax support.
Contributed by: Samuel Thibault <samuel.thibault@ens-lyon.org>

It is built on top of the NASM parser and preproc, with the following
notable extensions for TASM syntax:
 - case insensitive symbols and filenames,
 - support for segment and size of labels, which permits to avoid giving
   them on each memory dereference,
 - support for data reservation (i.e. e.g. "var dd ?"),
 - support for multiples (i.e. e.g. "var dd 1 dup 10"),
 - little endian string integer constants,
 - additional expression operators: shl, shr, and, or, low, high,
 - additional offset keyword,
 - additional fword and df,
 - support for doubled quotes within quotes,
 - support for array-like and structure-like notations: t[eax] and
   [var].field,
 - support for tasm directives: macro, rept, irp, locals, proc, struc,
   segment, assume.

Notes:

 - Almost all extensions are only effective when tasm_compatible_mode is
   set, so we should have very reduced possible breakage.

 - Because the "and" keyword can be an expression operator and an
   instruction name, the data pseudo-instructions explicitly switch the
   lexer state to INSTRUCTION state to fix the ambiguity.

 - In gen_x86_insn.py, several instructions (namely lds and lea) now take
   relaxed memory sizes.  The reason is that in the case of tasm, the size
   of the actual pointed data is passed up to there, and thus any type of
   data should be accepted.

With all of this, loadlin can be compiled by yasm with quite reduced
modifications.

A new TASM-like frontend is also included.

svn path=/trunk/yasm/; revision=2130
2008-10-07 05:38:11 +00:00
Peter Johnson
63e1873a8e Don't require nasm preproc for some testcases.
svn path=/trunk/yasm/; revision=2129
2008-10-07 04:34:19 +00:00
Peter Johnson
ef29b94867 Optimize non-strict push with 66 override to byte size if possible in NASM
syntax.

Previously, the forms of push that did this optimization were disabled in
NASM syntax due to conflicting with the size=BITS case.  Fix this via
reordering to allow these forms to be active in NASM syntax.

svn path=/trunk/yasm/; revision=2127
2008-10-05 08:31:04 +00:00
Peter Johnson
4d78c310b5 elf64: automatically promote [rel foo wrt ..gotpc] to GOTPCREL relocation.
Formerly, [rel foo wrt ..gotpcrel] was required.

svn path=/trunk/yasm/; revision=2126
2008-10-03 08:13:00 +00:00
Peter Johnson
0b002cd6a3 VPBLENDVB doesn't have a 256-bit form.
Reported by: Mark Charney

svn path=/trunk/yasm/; revision=2125
2008-10-02 07:26:22 +00:00
Peter Johnson
5abca04eff gen_x86_insn.py: Warn if any groups are unused (due to a typo, for example).
svn path=/trunk/yasm/; revision=2124
2008-10-02 02:15:56 +00:00
Peter Johnson
457170f54e Fix expr simplification bug.
If an expression of the form INT+(a+b)+INT was simplified, constant folding
would combine the ints, but then the level stage (to make INT+a+b) would
start reading from the second (deleted due to folding) INT rather than the
new end of the expression.

Reported by: Samuel Thibault (on yasm-devel@)

svn path=/trunk/yasm/; revision=2123
2008-09-30 03:56:37 +00:00
Peter Johnson
1b1c9ba0ad Nasm lexer: Don't read past end of passed string.
This was because the re2c-generated code always reads the next character
prior to user code being executed.  Instead, check for the \0 marker prior
to entering the re2c code.  Retain the re2c check just for sanity.

Reported by: Samuel Thibault (on yasm-devel@)

svn path=/trunk/yasm/; revision=2122
2008-09-30 02:52:56 +00:00
Peter Johnson
11798b4d6b Mark gen_x86_insn.py outputs as generated, to discourage hand-editing.
Suggested by: Mark Charney

svn path=/trunk/yasm/; revision=2121
2008-09-10 02:42:45 +00:00
Peter Johnson
c80ed373ba Fix #153: Name the absolute symbol.
While we're here, ensure it's always output regardless of all_syms setting.

svn path=/trunk/yasm/; revision=2120
2008-09-04 04:45:30 +00:00
Peter Johnson
a1b9924b9a Increase size of buffer now that mnenomics can be 16 characters.
svn path=/trunk/yasm/; revision=2119
2008-08-13 04:05:19 +00:00
Peter Johnson
b174e03f50 Add support for newly specified AVX/AES instructions:
- vaes*
- 256b vmovnt{ps,pd,dq}

Reported by: Mark.Charney@intel.com

svn path=/trunk/yasm/; revision=2118
2008-08-13 03:43:47 +00:00
Peter Johnson
33aa2d621b Fix bug in expr_level_op(). Discovered when adding on-the-fly expr leveling.
svn path=/trunk/yasm/; revision=2117
2008-07-18 05:52:01 +00:00
Peter Johnson
c6a2b083c1 Actually implement yasm__abspath() according to its documentation.
Formerly, it would not correctly handle absolute paths.  Now it uses
yasm__combpath() to do absolute-path aware path combination.
As a benefit, it no longer needs to be OS-specific.

Reported by: Shmuel Baron <shmulik@gmail.com>

svn path=/trunk/yasm/; revision=2116
2008-07-15 05:49:29 +00:00
Peter Johnson
e0d651acdd Fix extraneous warnings and update testcases for [2114] changes.
svn path=/trunk/yasm/; revision=2115
2008-07-08 06:36:44 +00:00
Peter Johnson
dbf6c6ce38 Fix #148: Don't clear elf section flags in GAS if it's a standard section and
no GAS flags were provided.

svn path=/trunk/yasm/; revision=2114
2008-07-08 06:28:37 +00:00
Peter Johnson
9cd2ac3378 x86_reg_print(): Add missing commas for correct register name lookup.
svn path=/trunk/yasm/; revision=2113
2008-07-07 06:17:33 +00:00
Peter Johnson
901b28cab4 yasm_symrec_get_global_name(): Document object parameter.
svn path=/trunk/yasm/; revision=2112
2008-07-06 22:30:07 +00:00
Peter Johnson
a78a908bab Generated files listed in SOURCES (rather than included by other files)
should not be listed in BUILT_SOURCES but rather have nodist_ prepended.
They still need to be separately listed as CLEANFILES as they're built
at make time.

Reported by: David Harvey <dmharvey@math.harvard.edu>

svn path=/trunk/yasm/; revision=2111
2008-07-06 22:26:49 +00:00
Peter Johnson
bd4a2ffdb8 Bin map file: Fix incorrect address printing for symbols.
We were printing the previous bytecode's start rather than the label's
bytecode.  Use yasm_bc_next_offset() to get the correct offset.

svn path=/trunk/yasm/; revision=2110
2008-07-03 04:19:12 +00:00
Peter Johnson
53b2d01a77 Fix #132: Add --prefix and --suffix (aka --postfix) options.
These allow arbitrary prefixes and/or suffixes to be added to
externally-visible (GLOBAL, EXTERN, or COMMON) symbol names.

svn path=/trunk/yasm/; revision=2109
2008-06-08 09:06:05 +00:00
Peter Johnson
3aab66a119 Fix #141: Add macho64 PIC support.
The way PIC relocations are generated for macho64 requires a bit of a hack
to detect MOV opcodes and generate GOT_LOAD relocs.
GAS contains a similar hack.

svn path=/trunk/yasm/; revision=2108
2008-06-05 08:48:21 +00:00
Peter Johnson
3196e62ef6 Quiet a warning about casting from a data to function pointer.
This is required to get a function pointer from dlsym().

svn path=/trunk/yasm/; revision=2107
2008-05-25 17:02:24 +00:00
Peter Johnson
13665a69db Update plugin README files for Windows.
svn path=/trunk/yasm/; revision=2106
2008-05-24 19:00:48 +00:00
Peter Johnson
e09d5a7968 Error out if Python not found.
svn path=/trunk/yasm/; revision=2105
2008-05-24 18:50:32 +00:00
Peter Johnson
c59ebcbe36 Fix x86 plugin build on Windows.
svn path=/trunk/yasm/; revision=2104
2008-05-24 18:49:59 +00:00
Peter Johnson
e733283016 Clean up plugins CMakeLists a bit.
Be more clever about finding the yasm executable on Windows.

svn path=/trunk/yasm/; revision=2103
2008-05-24 18:32:39 +00:00
Peter Johnson
0a3f7ea1b9 (cmake build) Install DLL files to correct locations on Windows.
svn path=/trunk/yasm/; revision=2102
2008-05-24 18:30:29 +00:00
Peter Johnson
eb7b1adb30 Enable DLL/plugin builds with cmake on Windows.
Add proper declspec dllimport/dllexport to all libyasm functions.
Use macros to make these do nothing on non-cmake and Unix builds.

svn path=/trunk/yasm/; revision=2101
2008-05-23 06:46:51 +00:00
Peter Johnson
e4f292ef16 Enable Id keyword expansion.
svn path=/trunk/yasm/; revision=2100
2008-05-23 06:31:52 +00:00
Peter Johnson
92d938f93f Prepend "lib" on plugin name only on Unix.
svn path=/trunk/yasm/; revision=2099
2008-05-23 06:30:38 +00:00
Peter Johnson
b7f2fbc64f Add cmake build infrastructure.
Not default nor even distributed in the .tar.gz, the cmake build allows for
loadable yasm plugins by building libyasm as a shared library.
Example plugins are in the plugins/ directory, and may be loaded into a
cmake-built yasm using the -N command line option (non-cmake builds will
not have this option).

Tested only on Linux so far, but should be relatively painless to port to
Windows thanks to the use of cmake rather than libtool to create shared
libraries.

The only modification to the main source tree is some conditional-compiled
additions to yasm.c.

svn path=/trunk/yasm/; revision=2098
2008-05-22 09:08:03 +00:00
Peter Johnson
811d7ad566 Make util.h more robust against use without config.h by moving the
toascii redefinition to the only file that uses it, errwarn.c.

svn path=/trunk/yasm/; revision=2097
2008-05-22 08:37:32 +00:00
Peter Johnson
3d8a8f577c Make ISO C89 compliant (too long constant string, use of // comment).
svn path=/trunk/yasm/; revision=2096
2008-05-15 06:55:57 +00:00
Peter Johnson
a72cc83b3c Add westmere CPU (supports AES and CLMUL), redefine sandybridge to add AVX
(FMA won't appear until the 22nm shrink of sandybridge).

Reported by: nasm64developer@users.sf.net

svn path=/trunk/yasm/; revision=2088
2008-05-14 03:32:20 +00:00
Peter Johnson
0fb038e9a1 Bring Mkfiles up-to-date with genmacro/preproc changes.
svn path=/trunk/yasm/; revision=2087
2008-05-13 05:28:09 +00:00
Peter Johnson
77aea19bc4 Fix handling of alloc_stack macro in GAS mode.
Reported by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2086
2008-05-13 03:41:27 +00:00
Peter Johnson
deffd98d53 Commit moved, updated genmacro script missed in [2082] commit.
svn path=/trunk/yasm/; revision=2084
2008-05-09 07:08:17 +00:00
Peter Johnson
a1cd884de8 Fix #138: Incorrect UNW_FLAG_CHAININFO value (currently unused).
svn path=/trunk/yasm/; revision=2083
2008-05-09 06:51:41 +00:00
Peter Johnson
cbf0c7befd Split NASM preprocessor standard macro set between various modules.
Standard macro sets are looked up based on parser and preprocessor keyword
from individual modules.

The "standard" NASM parser macros now reside in the NASM parser, so when
the GAS parser is used with the NASM preprocessor, the NASM-specific macros
are no longer defined.

Object-format specific macros are now individually defined by each object
formatm module.  This allows for the object formats to be independent of the
NASM preprocessor module and yields a small optimization benefit as unused
object format macros don't need to be skipped over.

Also add GAS macro equivalents for the Win64 SEH more complex directives [1].

[1] Requested by Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2082
2008-05-09 06:46:02 +00:00
Peter Johnson
d8a6f8c376 Allow registers as GAS directive parameters.
This is required for the win64 SEH directives.

svn path=/trunk/yasm/; revision=2081
2008-05-09 06:28:47 +00:00
Peter Johnson
44c098823f Allow registering of new modules at runtime.
svn path=/trunk/yasm/; revision=2080
2008-04-30 04:40:29 +00:00
Peter Johnson
3e6d218d3b Enable GAS versions of the win32/win64 safe exception handling directives.
svn path=/trunk/yasm/; revision=2079
2008-04-29 06:06:20 +00:00
Peter Johnson
5bdb018c95 Fix GAS handling of NASM preproc %line.
Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=2078
2008-04-29 05:11:52 +00:00
Peter Johnson
a4c7d7b85c Fix #137: LAR and LSL should only need 286+Prot CPU flags, not 386.
svn path=/trunk/yasm/; revision=2077
2008-04-29 02:24:02 +00:00
Peter Johnson
7b190b80fb Support use of NASM preprocessor with GAS parser.
Note: this combination is obviously not supported by any other assembler.

Requested by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2076
2008-04-25 06:50:36 +00:00
Peter Johnson
ca23bda1cf Defensively look for NULL istk.
svn path=/trunk/yasm/; revision=2075
2008-04-25 05:07:57 +00:00
Peter Johnson
1fd4e2ff76 Fix two instances of VERMIL2PS/PD incorrectly setting VEX.L=1.
Reported by: nasm64developer@users.sf.net

svn path=/trunk/yasm/; revision=2074
2008-04-25 04:58:11 +00:00
Peter Johnson
0423a89a79 Fix some re2c memory/initialization issues.
Found by: valgrind

svn path=/trunk/yasm/; revision=2072
2008-04-25 01:58:59 +00:00
Peter Johnson
bf5716cbd7 Fix register fields on FMA instructions.
The FMA instructions swap VEX.vvvv and imm8[7:4] as compared to other AVX
instructions.

Reported by: nasm64developer@users.sf.net

svn path=/trunk/yasm/; revision=2071
2008-04-22 05:41:11 +00:00
Peter Johnson
3d2fb09a5f Fix a number of AVX instructions where VEX.vvvv was incorrectly being set
to a register value instead of 1111b as required by the specification.

Reported by: Mark Charney

svn path=/trunk/yasm/; revision=2070
2008-04-21 07:59:57 +00:00
Peter Johnson
e563cbb2d9 Fix AVX instruction misnaming of new vptest variants:
- vptestps should be vtestps
 - vptestpd should be vtestpd

svn path=/trunk/yasm/; revision=2069
2008-04-21 07:56:26 +00:00
Peter Johnson
2d36cf72ae Allow {extern symbol}-{symbol in same segment} transformation.
This was earlier limited to local symbols.

Reported by: Dave Lee <davelee.com@gmail.com>

svn path=/trunk/yasm/; revision=2064
2008-04-14 01:48:02 +00:00
Peter Johnson
180d18bc11 Allow underscores in the middle of binary, octal, and hex constants.
This makes things like 00_11_22_33h okay.
Allow 0X as well as 0x in directives (already allowed for normal case).

svn path=/trunk/yasm/; revision=2063
2008-04-12 08:30:22 +00:00
Peter Johnson
ae63705e56 Add YMM register group for GAS mode.
svn path=/trunk/yasm/; revision=2061
2008-04-12 01:33:54 +00:00
Peter Johnson
ef8479870e Update copyright dates.
svn path=/trunk/yasm/; revision=2059
2008-04-12 01:17:00 +00:00
Peter Johnson
73ce31d01d We no longer need bison, but we do need Python for building from SVN.
svn path=/trunk/yasm/; revision=2058
2008-04-12 01:16:04 +00:00
Peter Johnson
76e18e1aab Remove snapshot version number accidentally committed with Mkfiles.
svn path=/trunk/yasm/; revision=2055
2008-04-12 01:08:19 +00:00
Peter Johnson
07020fa4b7 Bump trunk version after 0.7.x branch.
svn path=/trunk/yasm/; revision=2054
2008-04-12 01:04:29 +00:00
Peter Johnson
97a96c648d Disable Python bindings by default; the build process for them is broken
on most non-32-bit systems.

svn path=/trunk/yasm/; revision=2052
2008-04-12 00:56:30 +00:00
Peter Johnson
a38f103515 Add complete Intel Advanced Vector Extensions (AVX) support.
A full testcase for NASM mode based on the AVX programming reference is
included.  GAS mode should work, but is untested at present.

V-prefix aliases are present for all supported instructions to allow easy
use of the VEX prefix version without significant code modifications.

All comparison and other pseudo-ops are included.

svn path=/trunk/yasm/; revision=2051
2008-04-11 09:29:58 +00:00
Peter Johnson
9ade4d408d Move BITS==64 condition out of the CPU field (where it really doesn't belong)
and into a new misc_flags field.  This doesn't take any more space,
simplifies the code, and allows adding additional conditions like this in
the future.

Found and fixed a bug in CPU field generation (not copying a set variable
in gen_x86_insn.py).

svn path=/trunk/yasm/; revision=2050
2008-04-11 01:37:46 +00:00
Peter Johnson
120c28e2d3 PCOMUcc should have been PCOMccU.
Fix up condition code naming and add aliases to match SSE5 added to GNU
binutils as follows:
 COMcc:
 - swapped uneq, unlt, and unle with neq, nlt, and nle
 - added unge, ungt, ne, uge, ugt, nge, ngt, une, ge, and gt aliases
 PCOMcc:
 - added ne alias (for neq)

svn path=/trunk/yasm/; revision=2049
2008-04-04 02:10:24 +00:00
Peter Johnson
33cc7a0255 Add mnenomic condition codes for SSE5 comparison opcodes.
There are 16 condition codes for COM and 8 condition codes for PCOM/PCOMU.

Noticed by: nasm64developer@users.sf.net

svn path=/trunk/yasm/; revision=2048
2008-04-03 06:45:49 +00:00
Peter Johnson
33746edaa4 Minor update of VC9 compile readme.
Also add conversion script from vc9 (2008) build files to vc8 (2005) build
files.

Contributed by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2047
2008-04-01 04:25:15 +00:00
Peter Johnson
211072d520 Include VC9 build files in the distfile.
Noticed by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2046
2008-03-28 02:42:41 +00:00
Peter Johnson
698f3fe8ff Fix #136: Unbreak ..@ non-local-label mechanism.
Add testcase for this.
Also fix $-prefixed labels to match non-$-prefixed label behavior
(this has been broken for a very long time).

svn path=/trunk/yasm/; revision=2045
2008-03-27 05:35:36 +00:00
Peter Johnson
31b0b9294c Fix CPU feature bit number for XSAVE.
svn path=/trunk/yasm/; revision=2043
2008-02-22 04:50:32 +00:00
Peter Johnson
11ca8fd324 Add support for Nehalem XSAVE instructions and CPU feature.
svn path=/trunk/yasm/; revision=2042
2008-02-22 04:48:56 +00:00
Peter Johnson
6ced647e97 Allow setting of the TLS section flag in the NASM section directive.
Also default the .tdata section to having the TLS flag set.

svn path=/trunk/yasm/; revision=2041
2008-02-21 09:00:46 +00:00
Peter Johnson
b49c080965 Set ELF symbol type to TLS if either:
- symbol is defined in a TLS section
- symbol is used in a TLS relocation

This is required by the GNU linker, and matches GNU as behavior.
The implementation is not as clean as it perhaps should be, but it does
the job.

Reported by: Nils Weller <nils@gnulinux.nl>

svn path=/trunk/yasm/; revision=2040
2008-02-21 08:57:23 +00:00
Peter Johnson
40a06385d5 Pass size directly to yasm_value_finalize_expr() rather than setting
afterwards.  This fixes the value full-mask case for immediate operands:
e.g. "mov ax, word (label & 0xffff)".

svn path=/trunk/yasm/; revision=2039
2008-02-15 06:06:57 +00:00
Peter Johnson
7991cd8309 Fix #134: Allow '@' as the first character of an identifier, like NASM does.
svn path=/trunk/yasm/; revision=2038
2008-02-15 05:25:47 +00:00
Peter Johnson
fea08b7307 Update ..sym to work within new get_special_sym() framework.
svn path=/trunk/yasm/; revision=2037
2008-02-09 04:09:47 +00:00
Peter Johnson
a3e30bc39f Add support for ELF32 and ELF64 TLS (thread local storage) relocations.
While here, simplify how special relocations are handled inside ELF.

Requested by: Nils Weller <nils@gnulinux.nl>

svn path=/trunk/yasm/; revision=2036
2008-02-09 04:06:47 +00:00
Peter Johnson
04039380d1 Enable use of sym@FOO constructs in GAS parser.
To do this, restructure how special symbols are handled between the parser
and object format.  Instead of creating special symbols with the right
names, instead have the parser call the object format to see if a match
is found into the special symbols, which are no longer stored in the
symbol table.

svn path=/trunk/yasm/; revision=2035
2008-02-09 03:35:07 +00:00
Peter Johnson
aba2a018cb Support masking of relocatable values with an AND of the full value width to
avoid warnings.  This is primarily useful in bin object format output.
  db label        ; if label is >255, warns.
  db label & 0xff ; okay, no warning.
Masks other than full-sized 1s are still not supported:
  db label & 0x7f ; too complex error

svn path=/trunk/yasm/; revision=2034
2008-02-08 18:59:46 +00:00
Peter Johnson
0beb32cda9 Eliminate conversion warnings due to int/size_t differences.
svn path=/trunk/yasm/; revision=2033
2008-02-08 18:49:10 +00:00
Peter Johnson
0fba7dca8d Fix #130: Add SAFESEH directive for indicating SEH handlers in win32 output.
Unlike in MASM, no command-line switch is required.
Usage:
  extern handler (or handler: to define locally)
  safeseh handler

svn path=/trunk/yasm/; revision=2032
2008-02-08 18:26:40 +00:00
Peter Johnson
2fe53b2c29 Revert r2029. According to both AMD64 and Intel 64 instruction set
references, REX + 90h opcode is not NOP, but a valid XCHG:

"The x86 architecture commonly uses the XCHG EAX, EAX instruction (opcode
90h) as a one-byte NOP. In 64-bit mode, the processor treats opcode 90h as
a true NOP only if it would exchange rAX with itself. Without this special
handling, the instruction would zero-extend the upper 32 bits of RAX, and
thus it would not be a true nooperation.  Opcode 90h can still be used to
exchange rAX and r8 if the appropriate REX prefix is used."

Noticed by: nasm64developer@users.sf.net

svn path=/trunk/yasm/; revision=2031
2008-02-02 19:23:17 +00:00
Peter Johnson
e03b37ca5d Add Visual Studio 2008 build files.
Contributed by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2030
2008-01-31 02:25:12 +00:00
Peter Johnson
e212c41320 Don't generate 0x90 opcode for xchg rax, r8 and varieties thereof.
Without this fix, "xchg eax, r8d" results in 41 90, which is an invalid
opcode.

Reported by: Stefan <SMarF@gmx.de>

svn path=/trunk/yasm/; revision=2029
2008-01-28 05:48:26 +00:00
Peter Johnson
d1b8736d7a Make jmp with seg:off equ behave the same as NASM.
Formerly:
  foo equ 1:2
  jmp foo
would result in a far jump.  Now, an explicit "far" is required:
  jmp far foo
to generate a far jump.

In addition, the direct use of seg:off in immediates and effective
addresses will result in an error; the use of EQU'ed seg:off values
is still legal (and will still result in just the offset).  This
behavior is more sane and also matches NASM behavior.
Thus:
  foo equ 1:2
  mov ax, foo   ; okay, just 2
  mov ax, [foo] ; okay, just 2
  mov ax, 1:2   ; illegal
  mov ax, [1:2] ; illegal

svn path=/trunk/yasm/; revision=2028
2008-01-19 08:59:19 +00:00
Peter Johnson
e1f577f6d2 tools/xdf: Make 64-bit safe.
svn path=/trunk/yasm/; revision=2027
2008-01-19 08:30:21 +00:00
Peter Johnson
0e0d4b413a Fix #129: Support no-operand form of movsd in GAS syntax.
Reported and patch by: mm.beck@gmx.net

svn path=/trunk/yasm/; revision=2026
2008-01-03 04:13:18 +00:00
Peter Johnson
f210b61533 re2c: Fix -b generation in certain cases.
Fix from re2c repo r417 (sourceforge bug 1479044).

svn path=/trunk/yasm/; revision=2025
2007-12-15 00:00:55 +00:00
Peter Johnson
8370e6efa9 Fix NULL dereference for certain cases of REX used with jump instruction.
svn path=/trunk/yasm/; revision=2024
2007-12-10 05:20:32 +00:00
Peter Johnson
95ccef9731 Check for 0-termination character rather than newline.
svn path=/trunk/yasm/; revision=2023
2007-12-07 06:49:24 +00:00
Peter Johnson
ad072d5172 Turn off -Wconversion. It is far too noisy for it to be useful due to
"passing arg X of `' with different width due to prototype" warnings.

svn path=/trunk/yasm/; revision=2022
2007-12-06 05:46:02 +00:00
Peter Johnson
de93025047 Fix #122: Allow standalone prefixes.
Implementation copied from gas parser.

svn path=/trunk/yasm/; revision=2021
2007-12-04 07:08:01 +00:00
Peter Johnson
4606b9506a Fix #125: Improve reporting of operand and expression syntax errors.
Now instead of the generic "expression syntax error", more informative
error messages such as the following are reported:
 - unexpected `:' after instruction
 - expected expression after `%'
 - expected operand, got `%'

svn path=/trunk/yasm/; revision=2020
2007-12-04 06:55:11 +00:00
Peter Johnson
02075ed7ca Fix #123: Be explicit that errors are such by printing "error:" at beginning
of error messages.

svn path=/trunk/yasm/; revision=2019
2007-12-04 06:19:07 +00:00
Peter Johnson
f938cbd21d Fix #124: Fully simplify out sym-sym in values (e.g. a symbol minus itself).
This could particularly cause false errors if sym is external.

svn path=/trunk/yasm/; revision=2018
2007-12-04 05:58:54 +00:00
Peter Johnson
ddf78e19b5 Fix #127: Allow use of 0X in addition to 0x for hex constants.
svn path=/trunk/yasm/; revision=2017
2007-12-04 04:59:07 +00:00
Peter Johnson
760904a071 Fix internal error for usage of numeric segments in certain memory
addresses (e.g. "jmp far [0:0]").

Reported by: arkon@ragestorm.net

svn path=/trunk/yasm/; revision=2016
2007-11-28 07:25:59 +00:00
Peter Johnson
14596f6658 Fix #119. Quite a few SSE/SSE2 instructions assumed 128-bit memory sizes
instead of the correct 64-bit or 32-bit sizes (e.g. xmm/m64 or similar).
It worked fine when no memory size was specified, but it should also work
with the correct size modifier.

svn path=/trunk/yasm/; revision=2015
2007-11-28 07:21:08 +00:00
Peter Johnson
4a778b6027 Correctly initialize bin object format to default to no map generation.
svn path=/trunk/yasm/; revision=2013
2007-11-15 08:03:26 +00:00
Peter Johnson
3ecb2331f3 Correctly warn for map file usage if there are *no* object format
directives.

svn path=/trunk/yasm/; revision=2012
2007-11-15 03:57:34 +00:00
Peter Johnson
099b055bb1 Check for fseek() error.
svn path=/trunk/yasm/; revision=2011
2007-11-15 03:55:41 +00:00
Peter Johnson
52affeb01a Add NASM-compatible multi-section binary support to bin object format.
This allows for arbitrary load (LMA) and execution (VMA) addresses.

The following new section attributes are supported:
 - start (LMA start address)
 - follows (follow another section's last LMA)
 - align (LMA alignment)
 - vstart (VMA start address)
 - vfollows (follow another section's last VMA)
 - valign (VMA alignment)
In addition, sections can be designed progbits or nobits.

The following special symbols are generated for program use:
 - section.<sectname>.start (LMA start address)
 - section.<sectname>.vstart (VMA start address)
 - section.<sectname>.length (section length)

The ORG directive adjusts the file offset relative to LMA, so that if
ORG=0x100, a section with LMA=0x100 will be at file offset 0.

VMA addresses are the same as LMA addresses unless otherwise specified.

Full map file support is supported via the [MAP] directive.  The map output
filename can be set either as a parameter to the [MAP] directive or on the
command line with --mapfile=<filename>.  MAP options are BRIEF, SECTIONS,
SEGMENTS, SYMBOLS, and ALL (all of the above).  If no filename is specified
either on the command line or in the source file, the map is output to
standard output.

Full documentation will be added to the Yasm manual in the near future.

This implementation supports several configurations NASM does not, for
instance http://osdir.com/ml/lang.nasm.devel/2004-12/msg00032.html .
It is also fully 64-bit aware.

Fixes: #71, #99.

svn path=/trunk/yasm/; revision=2010
2007-11-14 08:33:32 +00:00
Peter Johnson
31f88dcd29 Update generated yasm_arch(7) man page.
svn path=/trunk/yasm/; revision=2009
2007-11-03 04:59:28 +00:00
Peter Johnson
bd06f1aace Support use of EQU values within NASM preprocessor.
Note: label values are still not supported, and probably never will be,
as yasm is single-pass parsing, and only reads the source file once.
Someday we may add specific support for relatively common %if-%error
idioms.

svn path=/trunk/yasm/; revision=2008
2007-11-03 04:37:44 +00:00
Peter Johnson
f9824d2cfc Change preprocessor interface from block-oriented to line-oriented.
This will make certain types of parser-preprocessor synchronization
easier for upcoming feature enhancements.

Due to additional complexity in GAS (rept), internally GAS converts
lines back into blocks.

svn path=/trunk/yasm/; revision=2007
2007-11-03 04:27:35 +00:00
Peter Johnson
ba01ca4261 Check correct variable for badly parsed expression.
svn path=/trunk/yasm/; revision=2006
2007-11-02 03:14:47 +00:00
Peter Johnson
c79ad07fae cpp-preproc.c: Fix typo in description (enternal -> external).
svn path=/trunk/yasm/; revision=2005
2007-10-22 06:27:02 +00:00
Peter Johnson
02378aa9e6 Fix #118: Don't use getcwd(NULL, 0), as it's platform-specific behavior.
Instead write our own yasm__getcwd() which retries getcwd() with
increasing buffer sizes until the path fits (as the initial size is 1024,
in basically all cases it'll succeed on the first try).

Reported by: bird-yasm@anduin.net

svn path=/trunk/yasm/; revision=2004
2007-10-16 07:40:21 +00:00
Peter Johnson
86206d60a8 x86_find_match(): Fix error reporting for operand 3 mismatches.
svn path=/trunk/yasm/; revision=2003
2007-10-11 07:29:41 +00:00
Peter Johnson
50baffb3fd x86_finalize_jmp(): Fix two incorrect usages of info instead of jinfo.
svn path=/trunk/yasm/; revision=2002
2007-10-11 06:38:29 +00:00
Peter Johnson
df68b7ad76 Fix explicitly-overridden short-only instructions such as "loop short label".
These would incorrectly be treated as errors.

svn path=/trunk/yasm/; revision=2001
2007-10-11 06:05:41 +00:00
Peter Johnson
d37c3b6183 Add core2 as alias for conroe codename.
svn path=/trunk/yasm/; revision=1993
2007-09-21 21:30:00 +00:00
Peter Johnson
900d862cf0 Update yasm_arch(7) man page from AMD64 wiki page.
svn path=/trunk/yasm/; revision=1992
2007-09-21 21:16:33 +00:00
Peter Johnson
c19c68ab7d Bring flat and DJGPP Mkfiles up to date with [1939].
svn path=/trunk/yasm/; revision=1988
2007-09-21 19:15:48 +00:00
Peter Johnson
ab9c123619 Add some imm64 tests.
svn path=/trunk/yasm/; revision=1983
2007-09-21 18:06:47 +00:00
Peter Johnson
358acf4597 Commit tests missed in [1979] commit.
svn path=/trunk/yasm/; revision=1981
2007-09-21 18:04:47 +00:00
Peter Johnson
bd7c26d2a6 Fix #115: 1<<0 resulted in 0 instead of 1 (broken in [1900]).
svn path=/trunk/yasm/; revision=1979
2007-09-21 17:48:17 +00:00
Peter Johnson
1049719c7b Remove yapp-preproc.c from list of files to scan for gettext.
svn path=/trunk/yasm/; revision=1972
2007-09-21 06:56:02 +00:00
Peter Johnson
314cbfd3ef Follow NASM after all in only turning off default RIP-rel for FS and GS,
not all segment registers.  FS and GS are the only ones which can have
a segment base != 0.

svn path=/trunk/yasm/; revision=1971
2007-09-20 05:15:29 +00:00
Peter Johnson
4db86bc131 Autoconfize cpp program name and popen. This commit inactivates cpp in the
VC build files, as there's no popen.

svn path=/trunk/yasm/; revision=1970
2007-09-20 04:24:46 +00:00
Peter Johnson
43240f8955 Finish cleanups made in [1967].
svn path=/trunk/yasm/; revision=1969
2007-09-20 04:23:48 +00:00
Peter Johnson
b4b0a136da Update Mkfiles to add new cpp module.
svn path=/trunk/yasm/; revision=1968
2007-09-20 03:58:31 +00:00
Peter Johnson
bb67a2b08d Fix a couple of warnings (non-prototype functions).
svn path=/trunk/yasm/; revision=1967
2007-09-20 03:55:17 +00:00
Peter Johnson
9064df86a8 Merge r1916-r1961 (cpp preproc module) from multiarch into trunk.
Contributed by: Paul Barker

svn path=/trunk/yasm/; revision=1966
2007-09-20 03:54:36 +00:00
Peter Johnson
31ef2e7a52 Support NASM's upcoming RIP-relative syntax, with a few differences.
This adds a "default" directive that takes either "rel" or "abs".  This
sets whether the default mode for simple displacements is RIP-relative (rel)
or not (abs).  The default without a directive is "abs".

Also added is corresponding "rel" and "abs" effective address modifiers
to override whatever default is set:
[rel label] is RIP-relative
[abs label] is not.

In default rel mode, [label] defaults to the former, in default abs mode,
the latter.  Also, segment overrides (note difference from NASM below) are
abs regardless of mode, unless explicitly overridden with rel:
[fs:label] is always abs
[rel fs:label] is always rel

However, we have a number of differences from NASM in this handling due to
what I feel to be yasm's more sane handling of [dword ...] and [qword ...].
In yasm, these set the displacement size, rather than the address size; the
latter is set using a a32/a64 prefix.  I feel this is more sane as in 64-bit
mode the two can be different in the MovOffs (A0/A1 mov *ax) case.

Also, yasm disables default-rel mode if any segment register is used, not
just FS or GS as NASM currently does.

See modules/arch/x86/tests/riprel1.asm and
modules/arch/x86/tests/riprel2.asm for examples, as well as my recent
posting to the nasm-devel mailing list on SF.

svn path=/trunk/yasm/; revision=1963
2007-09-19 07:47:10 +00:00
Peter Johnson
6dfe4b13fd Support "oword", "do", and "reso" as aliases for "dqword", "ddq", and
"resdq" respectively, for compatibility with NASM (sigh).

svn path=/trunk/yasm/; revision=1962
2007-09-19 02:52:33 +00:00
paulbarker
5cbc876ef5 * Added code to the cpp module to pass include directories to the cpp program.
* Marked a string for gettext.
* Fixed a comment error.

svn path=/branches/multiarch/; revision=1961
2007-09-18 12:41:57 +00:00
Peter Johnson
933bf531fd Make Python messages a little less threatening.
Suggested by: Brian Gladman

svn path=/trunk/yasm/; revision=1960
2007-09-18 08:34:57 +00:00
Peter Johnson
75677dee86 Remove unused variable.
svn path=/trunk/yasm/; revision=1959
2007-09-18 05:38:06 +00:00
Peter Johnson
0686569535 Fix VC++ build order dependencies.
Patch by: mu@

svn path=/trunk/yasm/; revision=1958
2007-09-18 05:22:07 +00:00
Peter Johnson
75a28312f3 Ensure Python is available before trying to run gen_x86_insn.py.
Use registry key search to avoid version/location dependency.

Noticed by: Brian Gladman  <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=1957
2007-09-18 02:33:31 +00:00
Peter Johnson
779b7dd67e Include ctype.h into files that now use tolower().
svn path=/trunk/yasm/; revision=1956
2007-09-17 03:42:01 +00:00
Peter Johnson
4af823161d Make CPU feature flags and registers case insensitive again.
This was accidentally removed in [1929].
Add test case for these so it doesn't happen again.

svn path=/trunk/yasm/; revision=1955
2007-09-17 02:58:05 +00:00
Peter Johnson
1f6c405d98 Add support for IEEE-754r "half precision" (16-bit) float format.
This format is used by SSE5.
Update minor tests; more extensive tests will be added soon.

svn path=/trunk/yasm/; revision=1954
2007-09-16 20:41:16 +00:00
Peter Johnson
a1137cdf67 Add SSE5 (new AMD SSE) instructions support.
svn path=/trunk/yasm/; revision=1953
2007-09-16 20:29:59 +00:00
Peter Johnson
39913f32de Fix #114: Incorrect ELF32 ..gotpc address calculation.
Reported by: Loren Merritt
Fix by: mu@

We already had a testcase for this, but it had an incorrect "golden" result.

svn path=/trunk/yasm/; revision=1952
2007-09-15 06:40:27 +00:00
Peter Johnson
e774242fd1 Finish cleanup made in [1948].
svn path=/trunk/yasm/; revision=1951
2007-09-14 05:19:10 +00:00
Peter Johnson
cbb1bd2771 Switch x86 operand storage from manual bitfields to C structure bitfields.
svn path=/trunk/yasm/; revision=1950
2007-09-13 07:26:17 +00:00
Peter Johnson
42b841418b Change modifiers from a prioritized shifted sequence into an ordered array.
Move GAS suffixes to a separate field in x86_insn_info rather than
having them embedded in the modifier field.

svn path=/trunk/yasm/; revision=1949
2007-09-13 06:35:24 +00:00
Peter Johnson
121de99320 Now that part of the build uses just Python, break apart the Python
and Pyrex (only required for bindings) checks.

svn path=/trunk/yasm/; revision=1948
2007-09-13 02:53:30 +00:00
Peter Johnson
e19fd3ce2b Add Id tag.
svn path=/trunk/yasm/; revision=1947
2007-09-12 07:11:42 +00:00
Peter Johnson
f0e2e9a262 Now that we have more cpu feature bits, properly document SSE4a as such.
Also correct name of k8 chip (clawhammer) and add venice, k10 processors.

svn path=/trunk/yasm/; revision=1946
2007-09-12 07:10:26 +00:00
Peter Johnson
f61ca1e379 Restructure x86 CPU handling to allow for more than 30 CPU feature flags.
svn path=/trunk/yasm/; revision=1945
2007-09-12 06:55:51 +00:00
Peter Johnson
4c0289c7c7 Run gen_x86_insn.py from vc and vc8 builds.
Users who build out of SVN will need to install Python, but this is painless even for
Windows users
(go to http://www.python.org/download/ and download and install the appropriate MSI)

Delete generated files from SVN; these are massive and annoying to keep updated
(massive diffs).

svn path=/trunk/yasm/; revision=1944
2007-09-12 04:15:33 +00:00
Peter Johnson
a7f73e3a6c Shrink the size of the x86_insn_info structure, particularly on 64-bit
systems, by combining operand lists into a single array (and trying to find
overlaps where possible).  This saves about 4K even on a 32-bit system.

Also shrink the generated gperf code by outputting the number of info
structures directly rather than using NELEMS().

svn path=/trunk/yasm/; revision=1943
2007-09-11 04:49:53 +00:00
Peter Johnson
cfcad025c5 Now that genperf takes an output filename, change informational outputs
to stdout instead of stderr.

svn path=/trunk/yasm/; revision=1942
2007-09-11 02:11:19 +00:00
paulbarker
11543884ff Added dependency generation to cpp module.
svn path=/branches/multiarch/; revision=1941
2007-09-10 10:46:31 +00:00
paulbarker
ca7439276e Delayed destruction of arguments list until cpp_preproc_destroy() in cpp module.
svn path=/branches/multiarch/; revision=1940
2007-09-10 10:17:19 +00:00
Peter Johnson
d0033b06c5 Change genperf to take input and output filenames rather than outputting to
standard output.  This makes for better error handling behavior with make
(redirecting the standard output could leave empty files behind on error).

svn path=/trunk/yasm/; revision=1939
2007-09-10 07:15:50 +00:00
Peter Johnson
0e349f552d Check in generated files from the Python script added in [1937].
While I prefer not to have generated files in the source repository,
do this for now in the interest of sanity on the Windows side (to allow
building directly from a SVN checkout).

An alternative might be to require Python on Windows when building from
SVN.  If at some point we decide to go that route, it will be easy enough
to remove these files and add the necessary bits to Mkfiles/vc and
Mkfiles/vc8.

svn path=/trunk/yasm/; revision=1938
2007-09-10 07:03:53 +00:00
Peter Johnson
f150e45913 Change x86 instruction tables to be automatically generated.
This combines the C and perfect hash tables into a single source file,
and allows for easier future changes to the source-level structures.

The Python-built files are included in the distribution so that Python
is not added as a dependency.

The generated code has been verified equal against the old tables,
excepting a number of bugfixes.

Most of the bugs fixed are in the CPU field, plus a few GAS suffix fixes.

svn path=/trunk/yasm/; revision=1937
2007-09-10 06:59:47 +00:00
paulbarker
37b2042a79 Fixed missing semicolon in file.h due to mistake when committing r1935.
svn path=/branches/multiarch/; revision=1936
2007-09-09 17:09:38 +00:00
paulbarker
ac75ded379 Changed gas parser to only pass the first cpp line marker onto the debugging module.
svn path=/branches/multiarch/; revision=1935
2007-09-09 11:51:08 +00:00
paulbarker
44a777ca7c Added yasm_get_include_dir() function.
svn path=/branches/multiarch/; revision=1934
2007-09-09 11:49:25 +00:00
Peter Johnson
502f5a1c4d Re-enable lc3b in flat Mkfiles.
svn path=/trunk/yasm/; revision=1933
2007-09-08 02:19:33 +00:00
Peter Johnson
1387e29705 Windows build fixes:
* modules.vcproj: Add x86cpu.c, x86regtmod.c, and lc3b arch files to fix build.
* x85geninsn.c: Clean up a couple of unused variables.
* genperf.c: Use sprintf instead of snprintf; convert filename backslashes to slashes.

svn path=/trunk/yasm/; revision=1932
2007-09-08 02:13:25 +00:00
Peter Johnson
1afb23f689 Fix a couple of Doxygen nits.
svn path=/trunk/yasm/; revision=1931
2007-09-08 01:34:51 +00:00
Peter Johnson
303c2867de Bring Mkfiles up to date with [1929].
svn path=/trunk/yasm/; revision=1930
2007-09-08 00:04:08 +00:00
Peter Johnson
00e958bcf6 Break apart perfect hash lookup generation and x86 arch-specific
instruction handling.

Use the GNU gperf file format, but continue to use our custom minimal
perfect hash generator.

svn path=/trunk/yasm/; revision=1929
2007-09-07 22:05:33 +00:00
Peter Johnson
32921a0d12 Unbreak distcheck in lc3b tests.
svn path=/trunk/yasm/; revision=1928
2007-09-07 22:03:34 +00:00
Peter Johnson
23c19a1d52 Unbreak distcheck when Python is available by pulling in bitvect.h.
svn path=/trunk/yasm/; revision=1927
2007-09-07 21:49:35 +00:00
paulbarker
5e9f538bb3 Added code to gas parser to handle line markers produced by cpp.
svn path=/branches/multiarch/; revision=1926
2007-09-03 20:20:40 +00:00
paulbarker
d628c6a315 * Marked message strings so gettext can find them.
* Updated POTFILES.in

svn path=/branches/multiarch/; revision=1925
2007-09-01 20:11:11 +00:00
paulbarker
2a1230f14e Tiny documentation fix for recent changes in the preprocessor create() inteface.
svn path=/branches/multiarch/; revision=1924
2007-08-30 21:27:10 +00:00
paulbarker
a956b0e1db Removed FILE* argument from preprocessor create() interface. The preprocessor now opens the input file itself.
svn path=/branches/multiarch/; revision=1923
2007-08-30 21:08:33 +00:00
paulbarker
76d60df7b8 Removed FILE* argument from parser interface. The FILE* given was simply stored and never used.
svn path=/branches/multiarch/; revision=1922
2007-08-30 21:00:38 +00:00
paulbarker
c88fd9dd7e Changed cpp module to destroy the argument list and free the memory it uses.
svn path=/branches/multiarch/; revision=1921
2007-08-30 19:36:57 +00:00
paulbarker
1069d0fce3 Modified cpp module to read directly from the preprocessor using a pipe, rather than storing the output in a temporary file.
svn path=/branches/multiarch/; revision=1920
2007-08-30 11:39:15 +00:00
paulbarker
dc23b37308 Simplified cpp module, re-structuring much of the code and improving comments.
svn path=/branches/multiarch/; revision=1919
2007-08-29 15:40:09 +00:00
paulbarker
0157febba0 Fixed yasm frontend to call the correct wrappers (yasm_preproc_create and yasm_arch_create) rather than directly calling members of the preproc and arch modules.
svn path=/branches/multiarch/; revision=1918
2007-08-29 14:08:19 +00:00
paulbarker
09403aea2a Cleaned up cpp_invoke() function and removed call to asprintf().
svn path=/branches/multiarch/; revision=1917
2007-08-29 12:23:39 +00:00
paulbarker
4f95e61961 Initial version of cpp module (on multiarch branch).
svn path=/branches/multiarch/; revision=1916
2007-08-29 11:33:05 +00:00
Peter Johnson
d88cc90196 Merge [1912], [1913], [1914] into multiarch branch.
svn path=/branches/multiarch/; revision=1915
2007-08-20 05:16:33 +00:00
Peter Johnson
e510b205cb Unbitrot lc3b architecture.
Requested by: Paul Barker <paulbarker@mailsnare.net>

svn path=/trunk/yasm/; revision=1914
2007-08-20 05:13:35 +00:00
Peter Johnson
35f8e2b1fc Set value->sign appropriately instead of ineffective passing of -1 to
output_value().

svn path=/trunk/yasm/; revision=1913
2007-08-20 05:11:11 +00:00
Peter Johnson
20dcf2190c Fix warning documentation to match behavior of yasm_value_output_basic().
svn path=/trunk/yasm/; revision=1912
2007-08-20 05:10:26 +00:00
Peter Johnson
4b142ea112 GAS parser: Push down directive lookup to parser to simplify tokenizer.
svn path=/trunk/yasm/; revision=1910
2007-08-19 23:59:08 +00:00
Peter Johnson
aea53cfd9e Add support for the following AMD instructions added in their July 2007
documentation update:
 - LZCNT
 - POPCNT
 - EXTRQ
 - INSERTQ
 - MOVNTSD
 - MOVNTSS

This required some new tricks in the x86 code, as EXTRQ and INSERTQ have
two imm8 parameters (the first one of which goes into the EA field), and
INSERTQ has a *4* parameter version (xmm1, xmm2, imm8, imm8).  Instead of
globally making the structures 4 wide, we just special-case INSERTQ.

svn path=/trunk/yasm/; revision=1909
2007-08-16 05:50:59 +00:00
Peter Johnson
589c25b451 Update yasm.rules so that it's compatible with the Intel compiler.
Contributed by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=1908
2007-08-10 16:56:13 +00:00
Peter Johnson
66bcd03658 Fix #112: Use yasm__strcasecmp instead of strcasecmp.
svn path=/trunk/yasm/; revision=1907
2007-08-05 16:44:07 +00:00
Peter Johnson
49a1a96813 Fix typo in VC7 modules.vcproj.
Reported by: Stefan Sellmer <stefansel@hotmail.de>

svn path=/trunk/yasm/; revision=1906
2007-08-02 02:55:13 +00:00
Peter Johnson
d7b386baba HAMT: Update stored key when building tree downwards from identical keys.
Not doing this could cause us to lose an entry if the tree is deep enough
that we need to rehash the keys as we're moving downward.

Reported by: Stefan Sellmer <stefansel@hotmail.de>

svn path=/trunk/yasm/; revision=1905
2007-08-01 05:14:53 +00:00
Peter Johnson
739b155741 Fix #111: Correctly #define HAVE__STRICMP for vc and vc8.
Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=1904
2007-08-01 04:08:04 +00:00
Peter Johnson
dfa51bf888 Fix two bugs in HAMT:
- HAMT_search() wasn't doing a full string comparison on the key before
   returning success.
 - HAMT_insert()'s check for the above was always doing a case-sensitive
   check; fixed to use case-insensitive when the HAMT is supposed to be
   case-insensitive (and likewise for HAMT_search).

svn path=/trunk/yasm/; revision=1903
2007-07-31 04:53:22 +00:00
Peter Johnson
3e1f0390e2 Add command line option aliases for -d (to -D) and -u (to -U) for
compatibility with NASM command line.

Requested by: Mike Frysinger <vapier@gentoo.org>

svn path=/trunk/yasm/; revision=1902
2007-07-29 06:11:47 +00:00
Peter Johnson
2a61dbc3c5 Use intnum_tobv() in a couple more places.
svn path=/trunk/yasm/; revision=1901
2007-07-26 07:36:05 +00:00
Peter Johnson
326303113c Change intnum so it stores long instead of unsigned long; this allows
intnum to not allocate bitvectors for "most" negative numbers.

We pay a bit more in conversion, but save big in terms of memory and
malloc/free calls
(e.g. ~10,000 allocations and ~250K bytes for elf-x86id.asm test).

svn path=/trunk/yasm/; revision=1900
2007-07-26 06:55:27 +00:00
Peter Johnson
36cdd57be2 Add support for second parameter (fill value) to .org directive in GAS
parser.

Add testcase for both local labels and .org fill.

Noticed by: Jung Lee <moorang@gmail.com>
Testcase from: Xiaoming Mo <xiaoming.mo@skelix.org>

svn path=/trunk/yasm/; revision=1899
2007-07-20 03:40:59 +00:00
Peter Johnson
328320cc2b Add support for GAS local labels (1:, 1f, 1b).
Noticed by: Jung Lee <moorang@gmail.com>

svn path=/trunk/yasm/; revision=1898
2007-07-20 03:28:24 +00:00
Peter Johnson
a310410911 Doxygen documentation fixes.
svn path=/trunk/yasm/; revision=1897
2007-07-16 04:42:02 +00:00
Peter Johnson
4fab0318c5 Don't use an inner structure for line mappings.
Fix a nit in yasm_linemap_poke() for the case when set() has not been
called before calling this function; the prior behavior could result
in incorrect line numbers due to not properly adjusting the new line
number.

svn path=/trunk/yasm/; revision=1896
2007-07-15 21:54:11 +00:00
Peter Johnson
2bb74148c1 Merge expr-int.h into expr.h, removing YASM_EXPR_INTERNAL in the process.
svn path=/trunk/yasm/; revision=1895
2007-07-14 05:31:08 +00:00
Peter Johnson
a958ef6df8 Merge bc-int.h into bytecode.h, removing YASM_BC_INTERNAL in the process.
svn path=/trunk/yasm/; revision=1894
2007-07-14 04:34:41 +00:00
Peter Johnson
ab13bd719e Remove YASM_LIB_INTERNAL. It never really gained us that much in terms of
visibility savings, as basically everything defined it.

svn path=/trunk/yasm/; revision=1893
2007-07-14 03:11:32 +00:00
Peter Johnson
69fc913eec Clean up a number of obsolete autoconf-detected standard C things.
svn path=/trunk/yasm/; revision=1892
2007-07-13 20:56:28 +00:00
Peter Johnson
bc7a333720 Bring Mkfiles up-to-date with [1889].
svn path=/trunk/yasm/; revision=1891
2007-07-13 17:34:21 +00:00
Peter Johnson
bab3f8f48a Bring POTFILES.in up to date.
svn path=/trunk/yasm/; revision=1890
2007-07-13 17:29:59 +00:00
Peter Johnson
fb8b8b8936 Change handling of frontend (mnenomic) instructions to make it easier to
customize on the arch side of things.  Instead of passing around an
arch_data[4] for instructions, now the arch can extend the structure itself
to add additional information in any format it likes.

svn path=/trunk/yasm/; revision=1889
2007-07-08 05:31:59 +00:00
Peter Johnson
608d246f93 Properly mark yasm_arch->create() error parameter as an output param.
svn path=/trunk/yasm/; revision=1888
2007-06-30 20:19:20 +00:00
Peter Johnson
685920384f Update splint script.
svn path=/trunk/yasm/; revision=1887
2007-06-30 20:18:50 +00:00
Peter Johnson
7949bdf4e0 Optimize negating a simple intnum.
svn path=/trunk/yasm/; revision=1886
2007-06-30 19:46:36 +00:00
Peter Johnson
81ef8abfe5 Fix buglet in handling of SEG of SEG:OFF. We were deleting the term at
the wrong level.  As we weren't changing numterms before either, this
really could have no effect other than not freeing the memory immediately
(it would be freed later).

svn path=/trunk/yasm/; revision=1885
2007-06-25 01:05:04 +00:00
Peter Johnson
0a3b9a8462 Fix default filename buffer overflow.
Note: this is not a security issue.

Noticed by: Mike Frysinger <vapier@gentoo.org>

svn path=/trunk/yasm/; revision=1884
2007-06-23 00:19:57 +00:00
Peter Johnson
9d14c17d5e Remove errant else. This should not have had any serious effects, as
combining IP-relative and shifts is very unusual (and probably not possible).

svn path=/trunk/yasm/; revision=1883
2007-06-10 03:44:27 +00:00
894 changed files with 134364 additions and 47471 deletions

64
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,64 @@
name: Build
on: [push, pull_request]
jobs:
build-host:
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
strategy:
fail-fast: false
matrix:
include:
- name: macOS
os: macos-latest
artifact: true
autotools: true
cmake: true
- name: Ubuntu
os: ubuntu-latest
artifact: true
autotools: true
cmake: true
- name: MSVC
os: windows-latest
cmake: true
name: "Build - ${{ matrix.name }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install autotools
if: ${{ matrix.autotools }}
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew update
brew install automake autoconf
fi
- name: Autogen (autotools)
if: ${{ matrix.autotools }}
run: ./autogen.sh
- name: Build (autotools)
if: ${{ matrix.autotools }}
run: make
- name: Check (autotools)
if: ${{ matrix.autotools }}
run: make check
- name: Dist (autotools)
id: make-dist
if: ${{ matrix.autotools }}
run: make dist
- name: Configure (CMake)
if: ${{ matrix.cmake }}
run: cmake -S . -B build
- name: Build (CMake)
if: ${{ matrix.cmake }}
run: cmake --build build
- uses: actions/upload-artifact@v7
if: ${{ matrix.artifact && always() && steps.make-dist.outcome == 'success' }}
with:
name: ${{ matrix.name }}
path: yasm-*.tar.gz

64
.gitignore vendored Normal file
View file

@ -0,0 +1,64 @@
autom4te.cache
stamp-h*
libyasm-stdint.h
nasm-token.c
nasm-macros.c
yapp-token.c
gas-token.c
license.c
module.c
x86parse.c
lc3bid.c
re2c-parser.c
re2c-parser.h
cleanup
test_hd
version.mac
*_test
configure
configure.scan
configure.lineno
./config.*
aclocal.m4
*.tar.gz
*.la
*.lo
*.o
*.a
.libs
.deps
libtool
*.bb
*.bbg
*.da
results
./Makefile
Makefile.in
.*.swp
python-setup.txt
yasm_python.c
.python-build
_yasm.pxi
yasm.pyx
build
yasm.so
x86cpu.c
x86insn_nasm.gperf
x86insn_nasm.c
x86insn_gas.gperf
x86insn_gas.c
x86insns.c
x86regtmod.c
nasm-version.c
win64-gas.c
win64-nasm.c
YASM-VERSION-FILE
YASM-VERSION.h
.sw*
./*.s
./*.asm
x64
*.log
*.trs
.dirstamp
*.user

2025
ABOUT-NLS

File diff suppressed because it is too large Load diff

30
BSD.txt
View file

@ -42,3 +42,33 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
NASM is now licensed under the 2-clause BSD license, also known as the
simplified BSD license.
Copyright 1996-2009 the NASM Authors - All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

47
CMakeLists.txt Normal file
View file

@ -0,0 +1,47 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.4...4.0)
PROJECT(yasm)
if (COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif (COMMAND cmake_policy)
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
# Where to look first for cmake modules
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
INCLUDE(YasmMacros)
INCLUDE(VersionGen)
OPTION(ENABLE_NLS "Enable message translations" OFF)
OPTION(YASM_BUILD_TESTS "Enable building of tests" ON)
IF(YASM_BUILD_TESTS)
ENABLE_TESTING()
ENDIF(YASM_BUILD_TESTS)
# Default build type to debug if not set
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Debug CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
VERSION_GEN(PACKAGE_VERSION "${CMAKE_BINARY_DIR}/YASM-VERSION-FILE" "1.3.0")
set (PACKAGE_STRING "yasm ${PACKAGE_VERSION}")
INCLUDE_DIRECTORIES(AFTER ${CMAKE_BINARY_DIR} ${yasm_SOURCE_DIR})
INCLUDE(ConfigureChecks.cmake)
ADD_SUBDIRECTORY(tools)
ADD_SUBDIRECTORY(libyasm)
ADD_SUBDIRECTORY(modules)
ADD_SUBDIRECTORY(frontends)
INSTALL(FILES
libyasm.h
${CMAKE_BINARY_DIR}/libyasm-stdint.h
DESTINATION include
)

11
COPYING
View file

@ -1,15 +1,17 @@
Yasm is Copyright (c) 2001-2007 Peter Johnson and other Yasm developers.
Yasm is Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.
Yasm developers and/or contributors include:
Peter Johnson
Michael Urman
Brian Gladman (VC8 build files, other fixes)
Brian Gladman (Visual Studio build files, other fixes)
Stanislav Karchebny (options parser)
Mathieu Monnier (SSE4 instruction patches)
Mathieu Monnier (SSE4 instruction patches, NASM preprocessor additions)
Anonymous "NASM64" developer (NASM preprocessor fixes)
Stephen Polkowski (x86 instruction patches)
Henryk Richter (Mach-O object format)
Ben Skeggs (patches, bug reports)
Alexei Svitkine (GAS preprocessor)
Samuel Thibault (TASM parser and frontend)
-----------------------------------
Yasm licensing overview and summary
@ -38,8 +40,7 @@ bitvect) are fulfilled.
-------
Modules
-------
The modules are 2-clause or 3-clause BSD licensed, with the exception of:
preprocs/nasm - LGPL licensed
The modules are 2-clause or 3-clause BSD licensed.
---------
Frontends

View file

@ -0,0 +1,11 @@
2014-08-10 gettextize <bug-gnu-gettext@gnu.org>
* m4/gettext.m4: Upgrade to gettext-0.18.3.
* m4/iconv.m4: Upgrade to gettext-0.18.3.
* m4/lib-ld.m4: Upgrade to gettext-0.18.3.
* m4/lib-link.m4: Upgrade to gettext-0.18.3.
* m4/lib-prefix.m4: Upgrade to gettext-0.18.3.
* m4/nls.m4: Upgrade to gettext-0.18.3.
* m4/po.m4: Upgrade to gettext-0.18.3.
* m4/progtest.m4: Upgrade to gettext-0.18.3.

76
ConfigureChecks.cmake Normal file
View file

@ -0,0 +1,76 @@
INCLUDE(CheckCSourceCompiles)
INCLUDE(CheckCCompilerFlag)
INCLUDE(CheckFunctionExists)
INCLUDE(CheckIncludeFile)
INCLUDE(CheckSymbolExists)
INCLUDE(CheckTypeSize)
INCLUDE(CheckLibraryExists)
FIND_PROGRAM(CPP_PROG NAMES cpp)
# Platform-specific include files (POSIX, Win32)
CHECK_INCLUDE_FILE(locale.h HAVE_LOCALE_H)
CHECK_INCLUDE_FILE(libgen.h HAVE_LIBGEN_H)
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILE(direct.h HAVE_DIRECT_H)
CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
CHECK_SYMBOL_EXISTS(abort "stdlib.h" HAVE_ABORT)
CHECK_FUNCTION_EXISTS(getcwd HAVE_GETCWD)
CHECK_FUNCTION_EXISTS(_stricmp HAVE__STRICMP)
CHECK_FUNCTION_EXISTS(toascii HAVE_TOASCII)
CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_LIBDL)
IF (HAVE_LIBDL)
SET(LIBDL "dl")
ELSE (HAVE_LIBDL)
SET(LIBDL "")
ENDIF (HAVE_LIBDL)
CONFIGURE_FILE(libyasm-stdint.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/libyasm-stdint.h)
CONFIGURE_FILE(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
FIND_PACKAGE(Python3 REQUIRED COMPONENTS Interpreter)
set(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
IF (NOT PYTHON_EXECUTABLE)
MESSAGE(FATAL_ERROR "Could not find Python executable")
ENDIF (NOT PYTHON_EXECUTABLE)
IF (CMAKE_COMPILER_IS_GNUCXX)
CHECK_C_COMPILER_FLAG(-pipe C_ACCEPTS_PIPE)
CHECK_C_COMPILER_FLAG(-ansi C_ACCEPTS_ANSI)
CHECK_C_COMPILER_FLAG(-pedantic C_ACCEPTS_PEDANTIC)
CHECK_C_COMPILER_FLAG(-Wall C_ACCEPTS_WALL)
CHECK_C_COMPILER_FLAG(-Wno-unused-parameter C_ACCEPTS_WNOUNUSEDPARAM)
IF (C_ACCEPTS_PIPE)
ADD_DEFINITIONS(-pipe)
ENDIF (C_ACCEPTS_PIPE)
IF (C_ACCEPTS_ANSI)
ADD_DEFINITIONS(-ansi)
ENDIF (C_ACCEPTS_ANSI)
IF (C_ACCEPTS_PEDANTIC)
ADD_DEFINITIONS(-pedantic)
ENDIF (C_ACCEPTS_PEDANTIC)
IF (C_ACCEPTS_WALL)
ADD_DEFINITIONS(-Wall)
ENDIF (C_ACCEPTS_WALL)
IF (C_ACCEPTS_WNOUNUSEDPARAM)
ADD_DEFINITIONS(-Wno-unused-parameter)
ENDIF (C_ACCEPTS_WNOUNUSEDPARAM)
ENDIF (CMAKE_COMPILER_IS_GNUCXX)
# Disable some annoying Visual Studio warnings
IF (MSVC)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNINGS)
ENDIF (MSVC)

View file

@ -1,5 +1,3 @@
$Id$
If you are contributing code to the YASM project or trying to compile YASM
from a CVS checkout, please read this first.
@ -66,7 +64,7 @@ requires in a packaged distribution. Programs required:
* m4
* gettext
* make (GNU preferred)
* bison
* Python
* gcc
To rebuild the manpages from the DocBook XML files, the program "xmlto" and

12
INSTALL
View file

@ -51,6 +51,18 @@ The simplest way to compile this package is:
all sorts of other programs in order to regenerate files that came
with the distribution.
Installation using vcpkg
==================
You can build and install yasm using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
`git clone https://github.com/Microsoft/vcpkg.git'
`cd vcpkg'
`./bootstrap-vcpkg.sh' # `./bootstrap-vcpkg.bat' for Windows
`./vcpkg integrate install'
`./vcpkg install yasm'
The yasm port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
Compilers and Options
=====================

View file

@ -1,12 +1,12 @@
# $Id$
SUBDIRS = po .
ACLOCAL_AMFLAGS = -I m4
AM_YFLAGS = -d
AM_CFLAGS = @MORE_CFLAGS@
bin_PROGRAMS =
dist_man_MANS =
notrans_dist_man_MANS =
TESTS =
TESTS_ENVIRONMENT =
noinst_PROGRAMS = genstring
@ -21,6 +21,9 @@ nodist_include_HEADERS = libyasm-stdint.h
noinst_HEADERS = util.h
BUILT_SOURCES =
MAINTAINERCLEANFILES =
DISTCLEANFILES =
SUFFIXES =
# configure.lineno doesn't clean up after itself?
CLEANFILES = configure.lineno
@ -28,9 +31,8 @@ EXTRA_DIST = config/config.rpath
# libyasm-stdint.h doesn't clean up after itself?
CONFIG_CLEAN_FILES = libyasm-stdint.h
# automake doesn't distribute mkinstalldirs?
EXTRA_DIST += config/mkinstalldirs
CONFIG_CLEAN_FILES += YASM-VERSION-FILE
CONFIG_CLEAN_FILES += YASM-VERSION.h
EXTRA_DIST += tools/Makefile.inc
EXTRA_DIST += libyasm/Makefile.inc
@ -55,54 +57,78 @@ EXTRA_DIST += BSD.txt
EXTRA_DIST += GNU_GPL-2.0
EXTRA_DIST += GNU_LGPL-2.0
EXTRA_DIST += splint.sh
EXTRA_DIST += YASM-VERSION-GEN.sh
EXTRA_DIST += CMakeLists.txt
EXTRA_DIST += ConfigureChecks.cmake
EXTRA_DIST += config.h.cmake
EXTRA_DIST += libyasm-stdint.h.cmake
EXTRA_DIST += cmake/CMakeLists.txt
EXTRA_DIST += cmake/modules/CMakeLists.txt
EXTRA_DIST += cmake/modules/DummyCFile.c
EXTRA_DIST += cmake/modules/VersionGen.cmake
EXTRA_DIST += cmake/modules/YasmMacros.cmake
EXTRA_DIST += frontends/CMakeLists.txt
EXTRA_DIST += frontends/tasm/CMakeLists.txt
EXTRA_DIST += frontends/vsyasm/CMakeLists.txt
EXTRA_DIST += frontends/yasm/CMakeLists.txt
EXTRA_DIST += frontends/yasm/genstring.py
EXTRA_DIST += frontends/yasm/yasm-plugin.c
EXTRA_DIST += frontends/yasm/yasm-plugin.h
EXTRA_DIST += libyasm/CMakeLists.txt
EXTRA_DIST += libyasm/cmake-module.c
EXTRA_DIST += modules/arch/CMakeLists.txt
EXTRA_DIST += modules/arch/lc3b/CMakeLists.txt
EXTRA_DIST += modules/arch/x86/CMakeLists.txt
EXTRA_DIST += modules/CMakeLists.txt
EXTRA_DIST += modules/dbgfmts/CMakeLists.txt
EXTRA_DIST += modules/dbgfmts/codeview/CMakeLists.txt
EXTRA_DIST += modules/dbgfmts/dwarf2/CMakeLists.txt
EXTRA_DIST += modules/dbgfmts/null/CMakeLists.txt
EXTRA_DIST += modules/dbgfmts/stabs/CMakeLists.txt
EXTRA_DIST += modules/listfmts/CMakeLists.txt
EXTRA_DIST += modules/listfmts/nasm/CMakeLists.txt
EXTRA_DIST += modules/objfmts/bin/CMakeLists.txt
EXTRA_DIST += modules/objfmts/CMakeLists.txt
EXTRA_DIST += modules/objfmts/coff/CMakeLists.txt
EXTRA_DIST += modules/objfmts/dbg/CMakeLists.txt
EXTRA_DIST += modules/objfmts/elf/CMakeLists.txt
EXTRA_DIST += modules/objfmts/macho/CMakeLists.txt
EXTRA_DIST += modules/objfmts/rdf/CMakeLists.txt
EXTRA_DIST += modules/objfmts/xdf/CMakeLists.txt
EXTRA_DIST += modules/parsers/CMakeLists.txt
EXTRA_DIST += modules/parsers/gas/CMakeLists.txt
EXTRA_DIST += modules/parsers/nasm/CMakeLists.txt
EXTRA_DIST += modules/preprocs/CMakeLists.txt
EXTRA_DIST += modules/preprocs/cpp/CMakeLists.txt
EXTRA_DIST += modules/preprocs/gas/CMakeLists.txt
EXTRA_DIST += modules/preprocs/nasm/CMakeLists.txt
EXTRA_DIST += modules/preprocs/raw/CMakeLists.txt
EXTRA_DIST += plugins/README
EXTRA_DIST += plugins/dbg/CMakeLists.txt
EXTRA_DIST += plugins/dbg/dbg-objfmt.c
EXTRA_DIST += plugins/dbg/init_plugin.c
EXTRA_DIST += plugins/dbg/README
EXTRA_DIST += plugins/x86/CMakeLists.txt
EXTRA_DIST += plugins/x86/init_plugin.c
EXTRA_DIST += plugins/x86/README
EXTRA_DIST += tools/CMakeLists.txt
EXTRA_DIST += tools/genmacro/CMakeLists.txt
EXTRA_DIST += tools/genperf/CMakeLists.txt
EXTRA_DIST += tools/re2c/CMakeLists.txt
EXTRA_DIST += Mkfiles/Makefile.flat
EXTRA_DIST += Mkfiles/Makefile.dj
EXTRA_DIST += Mkfiles/dj/config.h
EXTRA_DIST += Mkfiles/dj/libyasm-stdint.h
EXTRA_DIST += Mkfiles/vc/yasm.sln
EXTRA_DIST += Mkfiles/vc/yasm.vcproj
EXTRA_DIST += Mkfiles/vc/config.h
EXTRA_DIST += Mkfiles/vc/libyasm-stdint.h
EXTRA_DIST += Mkfiles/vc/genmacro/genmacro.vcproj
EXTRA_DIST += Mkfiles/vc/genmacro/run.bat
EXTRA_DIST += Mkfiles/vc/genmodule/genmodule.vcproj
EXTRA_DIST += Mkfiles/vc/genmodule/run.bat
EXTRA_DIST += Mkfiles/vc/genstring/genstring.vcproj
EXTRA_DIST += Mkfiles/vc/genstring/run.bat
EXTRA_DIST += Mkfiles/vc/genversion/genversion.vcproj
EXTRA_DIST += Mkfiles/vc/genversion/run.bat
EXTRA_DIST += Mkfiles/vc/libyasm/libyasm.vcproj
EXTRA_DIST += Mkfiles/vc/modules/modules.vcproj
EXTRA_DIST += Mkfiles/vc/re2c/re2c.vcproj
EXTRA_DIST += Mkfiles/vc/re2c/run.bat
EXTRA_DIST += Mkfiles/vc/gap/gap.vcproj
EXTRA_DIST += Mkfiles/vc/gap/run.bat
EXTRA_DIST += Mkfiles/vc8/crt_secure_no_deprecate.vsprops
EXTRA_DIST += Mkfiles/vc8/yasm.sln
EXTRA_DIST += Mkfiles/vc8/yasm.vcproj
EXTRA_DIST += Mkfiles/vc8/config.h
EXTRA_DIST += Mkfiles/vc8/libyasm-stdint.h
EXTRA_DIST += Mkfiles/vc8/readme.vc8.txt
EXTRA_DIST += Mkfiles/vc8/yasm.rules
EXTRA_DIST += Mkfiles/vc8/genmacro/genmacro.vcproj
EXTRA_DIST += Mkfiles/vc8/genmacro/run.bat
EXTRA_DIST += Mkfiles/vc8/genmodule/genmodule.vcproj
EXTRA_DIST += Mkfiles/vc8/genmodule/run.bat
EXTRA_DIST += Mkfiles/vc8/genstring/genstring.vcproj
EXTRA_DIST += Mkfiles/vc8/genstring/run.bat
EXTRA_DIST += Mkfiles/vc8/genversion/genversion.vcproj
EXTRA_DIST += Mkfiles/vc8/genversion/run.bat
EXTRA_DIST += Mkfiles/vc8/libyasm/libyasm.vcproj
EXTRA_DIST += Mkfiles/vc8/modules/modules.vcproj
EXTRA_DIST += Mkfiles/vc8/re2c/re2c.vcproj
EXTRA_DIST += Mkfiles/vc8/re2c/run.bat
EXTRA_DIST += Mkfiles/vc8/gap/gap.vcproj
EXTRA_DIST += Mkfiles/vc8/gap/run.bat
# Until this gets fixed in automake
DISTCLEANFILES = libyasm/stamp-h libyasm/stamp-h[0-9]*
DISTCLEANFILES += libyasm/stamp-h libyasm/stamp-h[0-9]*
ACLOCAL_AMFLAGS = -I m4
dist-hook: YASM-VERSION-FILE YASM-VERSION.h
cp YASM-VERSION-FILE $(distdir)/version
cp YASM-VERSION.h $(distdir)/Mkfiles/dj/
YASM-VERSION-FILE: $(top_srcdir)/YASM-VERSION-GEN.sh
$(top_srcdir)/YASM-VERSION-GEN.sh
distclean-local:
-rm -rf results
@ -110,12 +136,14 @@ if HAVE_PYTHON
-rm -rf build
endif
# Until gets fixed libyasm cross-build for target system
# use fixinstall-yasm-XXX make targets
all-local: python-build
install-exec-hook: python-install
uninstall-hook: python-uninstall
if BUILD_MAN
MAINTAINERCLEANFILES = $(dist_man_MANS)
MAINTAINERCLEANFILES += $(dist_man_MANS) $(notrans_dist_man_MANS)
endif
# genstring build

View file

@ -1,5 +1,3 @@
# $Id$
#
# Ultra-flat Makefile for DJGPP (also works for Cygwin).
# Does NOT depend on or use configure.
#
@ -13,16 +11,14 @@ CFLAGS=-DHAVE_CONFIG_H -IMkfiles/dj -O -I.
CC?=gcc
BUILDCC?=$(CC)
all: yasm
all: yasm ytasm vsyasm
LIBYASM_OBJS= \
libyasm/arch.o \
libyasm/assocdat.o \
libyasm/bitvect.o \
libyasm/bc-align.o \
libyasm/bc-data.o \
libyasm/bc-incbin.o \
libyasm/bc-insn.o \
libyasm/bc-org.o \
libyasm/bc-reserve.o \
libyasm/bytecode.o \
@ -31,6 +27,7 @@ LIBYASM_OBJS= \
libyasm/file.o \
libyasm/floatnum.o \
libyasm/hamt.o \
libyasm/insn.o \
libyasm/intnum.o \
libyasm/inttree.o \
libyasm/linemap.o \
@ -51,18 +48,20 @@ MODULES_ARCH_X86_OBJS= \
modules/arch/x86/x86arch.o \
modules/arch/x86/x86bc.o \
modules/arch/x86/x86expr.o \
modules/arch/x86/x86id.o
modules/arch/x86/x86id.o \
x86cpu.o \
x86regtmod.o
YASM_MODULES=arch_x86
#MODULES_ARCH_LC3B_OBJS= \
# modules/arch/lc3b/lc3barch.o \
# modules/arch/lc3b/lc3bbc.o \
# lc3bid.o
#YASM_MODULES+=arch_lc3b
MODULES_ARCH_LC3B_OBJS= \
modules/arch/lc3b/lc3barch.o \
modules/arch/lc3b/lc3bbc.o \
lc3bid.o
YASM_MODULES+=arch_lc3b
MODULES_ARCH_OBJS= \
$(MODULES_ARCH_X86_OBJS) \
# $(MODULES_ARCH_LC3B_OBJS)
$(MODULES_ARCH_LC3B_OBJS)
MODULES_DBGFMTS_OBJS= \
modules/dbgfmts/null/null-dbgfmt.o \
@ -96,9 +95,9 @@ MODULES_OBJFMTS_OBJS= \
modules/objfmts/rdf/rdf-objfmt.o \
modules/objfmts/xdf/xdf-objfmt.o
YASM_MODULES+=objfmt_dbg
YASM_MODULES+=objfmt_bin
YASM_MODULES+=objfmt_bin objfmt_dosexe
YASM_MODULES+=objfmt_coff objfmt_win32 objfmt_win64 objfmt_x64
YASM_MODULES+=objfmt_elf objfmt_elf32 objfmt_elf64
YASM_MODULES+=objfmt_elf objfmt_elf32 objfmt_elf64 objfmt_elfx32
YASM_MODULES+=objfmt_macho objfmt_macho32 objfmt_macho64
YASM_MODULES+=objfmt_rdf
YASM_MODULES+=objfmt_xdf
@ -108,9 +107,10 @@ MODULES_PARSERS_OBJS= \
modules/parsers/nasm/nasm-parse.o \
nasm-token.o \
modules/parsers/gas/gas-parser.o \
modules/parsers/gas/gas-parse-intel.o \
modules/parsers/gas/gas-parse.o \
gas-token.o
YASM_MODULES+=parser_nasm
YASM_MODULES+=parser_nasm parser_tasm
YASM_MODULES+=parser_gas parser_gnu
MODULES_PREPROCS_NASM_OBJS= \
@ -118,15 +118,26 @@ MODULES_PREPROCS_NASM_OBJS= \
modules/preprocs/nasm/nasm-pp.o \
modules/preprocs/nasm/nasm-preproc.o \
modules/preprocs/nasm/nasmlib.o
YASM_MODULES+=preproc_nasm
YASM_MODULES+=preproc_nasm preproc_tasm
MODULES_PREPROCS_RAW_OBJS = \
modules/preprocs/raw/raw-preproc.o
YASM_MODULES+=preproc_raw
MODULES_PREPROCS_CPP_OBJS = \
modules/preprocs/cpp/cpp-preproc.o
YASM_MODULES+=preproc_cpp
MODULES_PREPROCS_GAS_OBJS = \
modules/preprocs/gas/gas-eval.o \
modules/preprocs/gas/gas-preproc.o
YASM_MODULES+=preproc_gas
MODULES_PREPROCS_OBJS = \
$(MODULES_PREPROCS_NASM_OBJS) \
$(MODULES_PREPROCS_RAW_OBJS)
$(MODULES_PREPROCS_RAW_OBJS) \
$(MODULES_PREPROCS_CPP_OBJS) \
$(MODULES_PREPROCS_GAS_OBJS)
MODULES_OBJS = \
$(MODULES_ARCH_OBJS) \
@ -143,6 +154,18 @@ YASM_OBJS= \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
YTASM_OBJS= \
frontends/tasm/tasm.o \
frontends/tasm/tasm-options.o \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
VSYASM_OBJS= \
frontends/vsyasm/vsyasm.o \
frontends/yasm/yasm-options.o \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
genstring: genstring.c
$(BUILDCC) -o $@ $<
@ -151,13 +174,25 @@ license.c: COPYING genstring
frontends/yasm/yasm.c: license.c
genmacro: modules/preprocs/nasm/genmacro.c
genmacro: tools/genmacro/genmacro.c
$(BUILDCC) -o $@ $<
nasm-macros.c: modules/preprocs/nasm/standard.mac version.mac genmacro
./genmacro modules/preprocs/nasm/standard.mac version.mac
nasm-version.c: version.mac genmacro
./genmacro $@ nasm_version_mac version.mac
modules/preprocs/nasm/nasm-pp.c: nasm-macros.c
modules/preprocs/nasm/nasm-pp.c: nasm-version.c
nasm-macros.c: modules/parsers/nasm/nasm-std.mac genmacro
./genmacro $@ nasm_standard_mac modules/parsers/nasm/nasm-std.mac
modules/parsers/nasm/nasm-parser.c: nasm-macros.c
win64-nasm.c: modules/objfmts/coff/win64-nasm.mac genmacro
./genmacro $@ win64_nasm_stdmac modules/objfmts/coff/win64-nasm.mac
win64-gas.c: modules/objfmts/coff/win64-gas.mac genmacro
./genmacro $@ win64_gas_stdmac modules/objfmts/coff/win64-gas.mac
modules/objfmts/coff/coff-objfmt.c: win64-nasm.c win64-gas.c
genversion: modules/preprocs/nasm/genversion.c
$(BUILDCC) -IMkfiles/dj -o $@ $<
@ -171,10 +206,23 @@ genmodule: libyasm/genmodule.c
module.c: libyasm/module.in genmodule
./genmodule libyasm/module.in Mkfiles/Makefile.dj
x86parse.c: modules/arch/x86/x86parse.gap gap
./gap modules/arch/x86/x86parse.gap $@
x86insn_nasm.gperf x86insn_gas.gperf x86insns.c: modules/arch/x86/gen_x86_insn.py
# ignore error in case python is not installed
-python modules/arch/x86/gen_x86_insn.py
modules/arch/x86/x86id.c: x86parse.c
x86insn_nasm.c: x86insn_nasm.gperf genperf
./genperf x86insn_nasm.gperf $@
x86insn_gas.c: x86insn_gas.gperf genperf
./genperf x86insn_gas.gperf $@
x86cpu.c: modules/arch/x86/x86cpu.gperf genperf
./genperf modules/arch/x86/x86cpu.gperf $@
x86regtmod.c: modules/arch/x86/x86regtmod.gperf genperf
./genperf modules/arch/x86/x86regtmod.gperf $@
modules/arch/x86/x86id.c: x86insn_nasm.c x86insn_gas.c x86insns.c
lc3bid.c: modules/arch/lc3b/lc3bid.re re2c
./re2c -s -o $@ modules/arch/lc3b/lc3bid.re
@ -199,19 +247,25 @@ RE2C_SRCS= \
re2c: $(RE2C_SRCS)
$(BUILDCC) -I. -o re2c $(RE2C_SRCS)
GAP_SRCS= \
tools/gap/gap.c \
tools/gap/perfect.c \
GENPERF_SRCS= \
tools/genperf/genperf.c \
tools/genperf/perfect.c \
libyasm/phash.c \
libyasm/xmalloc.c \
libyasm/xstrdup.c
gap: $(GAP_SRCS)
$(BUILDCC) -I. -o gap $(GAP_SRCS)
genperf: $(GENPERF_SRCS)
$(BUILDCC) -I. -o genperf $(GENPERF_SRCS)
yasm: $(YASM_OBJS)
$(CC) -o yasm $(YASM_OBJS)
ytasm: $(YTASM_OBJS)
$(CC) -o ytasm $(YTASM_OBJS)
vsyasm: $(VSYASM_OBJS)
$(CC) -o vsyasm $(VSYASM_OBJS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<

View file

@ -1,5 +1,3 @@
# $Id$
#
# Ultra-flat Makefile "prototype" for non-Unix platforms.
# Does NOT depend on or use configure.
#
@ -16,16 +14,14 @@ CFLAGS=-DHAVE_CONFIG_H -IMkfiles -I.
CC?=gcc
BUILDCC?=$(CC)
all: yasm
all: yasm ytasm vsyasm
LIBYASM_OBJS= \
libyasm/arch.o \
libyasm/assocdat.o \
libyasm/bitvect.o \
libyasm/bc-align.o \
libyasm/bc-data.o \
libyasm/bc-incbin.o \
libyasm/bc-insn.o \
libyasm/bc-org.o \
libyasm/bc-reserve.o \
libyasm/bytecode.o \
@ -34,6 +30,7 @@ LIBYASM_OBJS= \
libyasm/file.o \
libyasm/floatnum.o \
libyasm/hamt.o \
libyasm/insn.o \
libyasm/intnum.o \
libyasm/inttree.o \
libyasm/linemap.o \
@ -54,18 +51,20 @@ MODULES_ARCH_X86_OBJS= \
modules/arch/x86/x86arch.o \
modules/arch/x86/x86bc.o \
modules/arch/x86/x86expr.o \
modules/arch/x86/x86id.o
modules/arch/x86/x86id.o \
x86cpu.o \
x86regtmod.o
YASM_MODULES=arch_x86
#MODULES_ARCH_LC3B_OBJS= \
# modules/arch/lc3b/lc3barch.o \
# modules/arch/lc3b/lc3bbc.o \
# lc3bid.o
#YASM_MODULES+=arch_lc3b
MODULES_ARCH_LC3B_OBJS= \
modules/arch/lc3b/lc3barch.o \
modules/arch/lc3b/lc3bbc.o \
lc3bid.o
YASM_MODULES+=arch_lc3b
MODULES_ARCH_OBJS= \
$(MODULES_ARCH_X86_OBJS) \
# $(MODULES_ARCH_LC3B_OBJS)
$(MODULES_ARCH_LC3B_OBJS)
MODULES_DBGFMTS_OBJS= \
modules/dbgfmts/null/null-dbgfmt.o \
@ -99,9 +98,9 @@ MODULES_OBJFMTS_OBJS= \
modules/objfmts/rdf/rdf-objfmt.o \
modules/objfmts/xdf/xdf-objfmt.o
YASM_MODULES+=objfmt_dbg
YASM_MODULES+=objfmt_bin
YASM_MODULES+=objfmt_bin objfmt_dosexe
YASM_MODULES+=objfmt_coff objfmt_win32 objfmt_win64 objfmt_x64
YASM_MODULES+=objfmt_elf objfmt_elf32 objfmt_elf64
YASM_MODULES+=objfmt_elf objfmt_elf32 objfmt_elf64 objfmt_elfx32
YASM_MODULES+=objfmt_macho objfmt_macho32 objfmt_macho64
YASM_MODULES+=objfmt_rdf
YASM_MODULES+=objfmt_xdf
@ -111,9 +110,10 @@ MODULES_PARSERS_OBJS= \
modules/parsers/nasm/nasm-parse.o \
nasm-token.o \
modules/parsers/gas/gas-parser.o \
modules/parsers/gas/gas-parse-intel.o \
modules/parsers/gas/gas-parse.o \
gas-token.o
YASM_MODULES+=parser_nasm
YASM_MODULES+=parser_nasm parser_tasm
YASM_MODULES+=parser_gas parser_gnu
MODULES_PREPROCS_NASM_OBJS= \
@ -121,15 +121,26 @@ MODULES_PREPROCS_NASM_OBJS= \
modules/preprocs/nasm/nasm-pp.o \
modules/preprocs/nasm/nasm-preproc.o \
modules/preprocs/nasm/nasmlib.o
YASM_MODULES+=preproc_nasm
YASM_MODULES+=preproc_nasm preproc_tasm
MODULES_PREPROCS_RAW_OBJS = \
modules/preprocs/raw/raw-preproc.o
YASM_MODULES+=preproc_raw
MODULES_PREPROCS_CPP_OBJS = \
modules/preprocs/cpp/cpp-preproc.o
YASM_MODULES+=preproc_cpp
MODULES_PREPROCS_GAS_OBJS = \
modules/preprocs/gas/gas-eval.o \
modules/preprocs/gas/gas-preproc.o
YASM_MODULES+=preproc_gas
MODULES_PREPROCS_OBJS = \
$(MODULES_PREPROCS_NASM_OBJS) \
$(MODULES_PREPROCS_RAW_OBJS)
$(MODULES_PREPROCS_RAW_OBJS) \
$(MODULES_PREPROCS_CPP_OBJS) \
$(MODULES_PREPROCS_GAS_OBJS)
MODULES_OBJS = \
$(MODULES_ARCH_OBJS) \
@ -146,6 +157,18 @@ YASM_OBJS= \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
YTASM_OBJS= \
frontends/tasm/tasm.o \
frontends/tasm/tasm-options.o \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
VSYASM_OBJS= \
frontends/vsyasm/vsyasm.o \
frontends/yasm/yasm-options.o \
$(LIBYASM_OBJS) \
$(MODULES_OBJS)
genstring: genstring.c
$(BUILDCC) -o $@ $<
@ -154,16 +177,28 @@ license.c: COPYING genstring
frontends/yasm/yasm.c: license.c
genmacro: modules/preprocs/nasm/genmacro.c
genmacro: tools/genmacro/genmacro.c
$(BUILDCC) -o $@ $<
nasm-macros.c: modules/preprocs/nasm/standard.mac version.mac genmacro
./genmacro modules/preprocs/nasm/standard.mac version.mac
nasm-version.c: version.mac genmacro
./genmacro $@ nasm_version_mac version.mac
modules/preprocs/nasm/nasm-pp.c: nasm-macros.c
modules/preprocs/nasm/nasm-pp.c: nasm-version.c
genversion: modules/preprocs/nasm/genversion.c
$(BUILDCC) -IMkfiles -o $@ $<
nasm-macros.c: modules/parsers/nasm/nasm-std.mac genmacro
./genmacro $@ nasm_standard_mac modules/parsers/nasm/nasm-std.mac
modules/parsers/nasm/nasm-parser.c: nasm-macros.c
win64-nasm.c: modules/objfmts/coff/win64-nasm.mac genmacro
./genmacro $@ win64_nasm_stdmac modules/objfmts/coff/win64-nasm.mac
win64-gas.c: modules/objfmts/coff/win64-gas.mac genmacro
./genmacro $@ win64_gas_stdmac modules/objfmts/coff/win64-gas.mac
modules/objfmts/coff/coff-objfmt.c: win64-nasm.c win64-gas.c
genversion: modules/preprocs/nasm/genversion.c YASM-VERSION.h
$(BUILDCC) -IMkfiles -I. -o $@ $<
version.mac: genversion
./genversion $@
@ -174,10 +209,23 @@ genmodule: libyasm/genmodule.c
module.c: libyasm/module.in genmodule
./genmodule libyasm/module.in Mkfiles/Makefile.flat
x86parse.c: modules/arch/x86/x86parse.gap gap
./gap modules/arch/x86/x86parse.gap $@
x86insn_nasm.gperf x86insn_gas.gperf x86insns.c: modules/arch/x86/gen_x86_insn.py
# ignore error in case python is not installed
-python modules/arch/x86/gen_x86_insn.py
modules/arch/x86/x86id.c: x86parse.c
x86insn_nasm.c: x86insn_nasm.gperf genperf
./genperf x86insn_nasm.gperf $@
x86insn_gas.c: x86insn_gas.gperf genperf
./genperf x86insn_gas.gperf $@
x86cpu.c: modules/arch/x86/x86cpu.gperf genperf
./genperf modules/arch/x86/x86cpu.gperf $@
x86regtmod.c: modules/arch/x86/x86regtmod.gperf genperf
./genperf modules/arch/x86/x86regtmod.gperf $@
modules/arch/x86/x86id.c: x86insn_nasm.c x86insn_gas.c x86insns.c
lc3bid.c: modules/arch/lc3b/lc3bid.re re2c
./re2c -s -o $@ modules/arch/lc3b/lc3bid.re
@ -202,19 +250,30 @@ RE2C_SRCS= \
re2c: $(RE2C_SRCS)
$(BUILDCC) -I. -o re2c $(RE2C_SRCS)
GAP_SRCS= \
tools/gap/gap.c \
tools/gap/perfect.c \
GENPERF_SRCS= \
tools/genperf/genperf.c \
tools/genperf/perfect.c \
libyasm/phash.c \
libyasm/xmalloc.c \
libyasm/xstrdup.c
gap: $(GAP_SRCS)
$(BUILDCC) -I. -o gap $(GAP_SRCS)
genperf: $(GENPERF_SRCS)
$(BUILDCC) -I. -o genperf $(GENPERF_SRCS)
yasm: $(YASM_OBJS)
$(CC) -o yasm $(YASM_OBJS)
ytasm: $(YTASM_OBJS)
$(CC) -o ytasm $(YTASM_OBJS)
vsyasm: $(VSYASM_OBJS)
$(CC) -o vsyasm $(VSYASM_OBJS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
$(YASM_OBJS) $(YTASM_OBJS) $(VSYASM_OBJS): YASM-VERSION.h
YASM-VERSION.h: YASM-VERSION-GEN.sh
sh YASM-VERSION-GEN.sh

View file

@ -1,9 +1,11 @@
/* $Id$ */
#include "YASM-VERSION.h"
#define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail)
#define yasm__abspath(path) yasm__abspath_win(path)
#define yasm__combpath(from, to) yasm__combpath_win(from, to)
/* Command name to run C preprocessor */
#define CPP_PROG "gcc -E"
/* */
/* #undef ENABLE_NLS */
@ -13,12 +15,23 @@
/* */
/* #undef HAVE_CATGETS */
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
CoreFoundation framework. */
/* #undef HAVE_CFLOCALECOPYCURRENT */
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
the CoreFoundation framework. */
/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
/* #undef HAVE_DCGETTEXT */
/* Define if you don't have `vprintf' but do have `_doprnt'. */
/* #undef HAVE_DOPRNT */
/* Define to 1 if you have the <direct.h> header file. */
/* #undef HAVE_DIRECT_H */
/* Define to 1 if you have the `ftruncate' function. */
#define HAVE_FTRUNCATE 1
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
@ -41,21 +54,15 @@
/* Define to 1 if you have the <libgen.h> header file. */
/* #undef HAVE_LIBGEN_H */
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* Define if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the `mergesort function. */
/* #undef HAVE_MERGESORT */
/* Define to 1 if you have the `popen' function. */
#define HAVE_POPEN 1
/* Define if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
@ -83,59 +90,44 @@
/* Define if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1
/* Define if you have the `strrchr' function. */
#define HAVE_STRRCHR 1
/* Define if you have the `strsep' function. */
#define HAVE_STRSEP 1
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define if you have the `toascii' function. */
#define HAVE_TOASCII 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define to 1 if you have the `vsnprintf' function. */
/* #undef HAVE_VSNPRINTF */
/* Define to 1 if you have the `_stricmp' function. */
/* #undef HAVE__STRICMP */
/* Name of package */
#define PACKAGE "yasm"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bug-yasm@tortall.net"
/* Define to build version of this package. */
#define PACKAGE_BUILD "HEAD"
/* Define to internal version of this package. */
#define PACKAGE_INTVER "0.6.99"
/* Define to the full name of this package. */
#define PACKAGE_NAME "yasm"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "yasm HEAD"
/*#define PACKAGE_STRING "yasm HEAD"*/
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "yasm"
/* Define to the version of this package. */
#define PACKAGE_VERSION "HEAD"
/*#define PACKAGE_VERSION "HEAD"*/
/* Define if the C compiler supports function prototypes. */
#define PROTOTYPES 1

View file

@ -1,48 +0,0 @@
#!/usr/bin/perl
# $Id$
use POSIX qw(strftime);
$|++;
my $version = '0.0.1';
my $todaydate = strftime "%Y%m%d", localtime;
my $snapshot_dir = "/home/yasm/public_html/snapshots/$todaydate";
my $cvs_dir = '/usr/local/cvs2/yasm/chrooted-cvs/cvs';
my $build_dir = '/home/yasm/build';
# Create snapshot directory
system('mkdir', $snapshot_dir);
# Relink "latest" symlink
system('rm', "$snapshot_dir/../latest");
system('ln', '-s', $snapshot_dir, "$snapshot_dir/../latest");
system('rm', "$snapshot_dir/../../latest");
system('ln', '-s', $snapshot_dir, "$snapshot_dir/../../latest");
# Build CVS tree tarball
chdir("$cvs_dir/..") || die "Could not change to CVS directory";
system('tar', '-czf', "$snapshot_dir/yasm-cvstree.tar.gz", 'cvs') == 0
or die "CVS tree tarball build failed: $?.";
# Build CVS checkout tarball
chdir($build_dir) || die "Could not change to build directory";
system('chmod', '-R', 'u+w', 'yasm') == 0
or die "Could not chmod old CVS checkout directory: $?.";
system('rm', '-Rf', 'yasm') == 0
or die "Could not remove old CVS checkout directory: $?.";
system('mkdir', 'yasm') == 0
or die "Could not create CVS checkout directory: $?.";
chdir('yasm') || die "Could not change to CVS checkout directory.";
system('cvs', '-q', "-d$cvs_dir", 'checkout', '.') == 0
or die "CVS checkout failed: $?.";
chdir('..');
system('tar', '-czf', "$snapshot_dir/yasm-cvs.tar.gz", 'yasm') == 0
or die "CVS checkout tarball build failed: $?.";
chdir('yasm');
# Update and build distribution tarball
system("./autogen.sh >$snapshot_dir/autogen-log.txt 2>$snapshot_dir/autogen-errwarn.txt") == 0
or die "autogen.sh failed: $?.";
system("gmake distcheck >$snapshot_dir/make-log.txt 2>$snapshot_dir/make-errwarn.txt") == 0
or die "build failed: $?.";
system("cp *.tar.gz $snapshot_dir/") == 0
or die "dist tarball copy failed.";

View file

@ -1,158 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="gap"
ProjectGUID="{5758BF4E-ABC4-11DA-B012-B622A1EF5492}"
RootNamespace="gap"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;STDC_HEADERS"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/gap.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/gap.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;STDC_HEADERS"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/gap.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{7D996CB2-ABC4-11DA-B012-B622A1EF5492}">
<File
RelativePath="..\..\..\tools\gap\gap.c">
</File>
<File
RelativePath="..\..\..\tools\gap\perfect.c">
</File>
<File
RelativePath="..\..\..\libyasm\phash.c">
</File>
<File
RelativePath="..\..\..\libyasm\xmalloc.c">
</File>
<File
RelativePath="..\..\..\libyasm\xstrdup.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{85DD7A94-ABC4-11DA-B012-B622A1EF5492}">
<File
RelativePath="..\..\..\tools\gap\perfect.h">
</File>
<File
RelativePath="..\..\..\tools\gap\standard.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{8EB9B268-ABC4-11DA-B012-B622A1EF5492}">
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..\
%1 modules\arch\x86\x86parse.gap x86parse.c

View file

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="genmacro"
ProjectGUID="{225700A5-07B8-434E-AD61-555278BF6733}"
RootNamespace="genmacro"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genmacro.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/genmacro.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genmacro.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="..\..\..\modules\preprocs\nasm\genmacro.c">
</File>
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..
%1 modules\preprocs\nasm\standard.mac version.mac

View file

@ -1,127 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="genmodule"
ProjectGUID="{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;FILTERMODE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genmodule.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/genmodule.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;FILTERMODE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genmodule.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="..\..\..\libyasm\genmodule.c">
</File>
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,3 +0,0 @@
@echo off
cd ..\..\..
%1 libyasm\module.in Makefile.am

View file

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="genstring"
ProjectGUID="{021CEB0A-F721-4F59-B349-9CEEAF244459}"
RootNamespace="genstring"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genstring.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/genstring.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genstring.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{28EBE11C-5BE8-4935-9381-F57696749E0C}">
<File
RelativePath="..\..\..\genstring.c">
</File>
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..
%1 license_msg license.c COPYING

View file

@ -1,137 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="genversion"
ProjectGUID="{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}"
RootNamespace="genversion"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\vc8"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genversion.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/genversion.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\vc8"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genversion.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{E67ED277-E4F2-4D79-8C9E-962BAC164F3F}">
<File
RelativePath="..\..\..\modules\preprocs\nasm\genversion.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
<File
RelativePath="..\config.h">
</File>
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,305 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="libyasm"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H"
StringPooling="TRUE"
RuntimeLibrary="4"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Release/libyasm.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Release\libyasm.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Debug/libyasm.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Debug\libyasm.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath="..\..\..\libyasm\arch.c">
</File>
<File
RelativePath="..\..\..\libyasm\assocdat.c">
</File>
<File
RelativePath="..\..\..\libyasm\bitvect.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-align.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-data.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-incbin.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-insn.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-org.c">
</File>
<File
RelativePath="..\..\..\libyasm\bc-reserve.c">
</File>
<File
RelativePath="..\..\..\libyasm\bytecode.c">
</File>
<File
RelativePath="..\..\..\libyasm\errwarn.c">
</File>
<File
RelativePath="..\..\..\libyasm\expr.c">
</File>
<File
RelativePath="..\..\..\libyasm\file.c">
</File>
<File
RelativePath="..\..\..\libyasm\floatnum.c">
</File>
<File
RelativePath="..\..\..\libyasm\hamt.c">
</File>
<File
RelativePath="..\..\..\libyasm\intnum.c">
</File>
<File
RelativePath="..\..\..\libyasm\inttree.c">
</File>
<File
RelativePath="..\..\..\libyasm\linemap.c">
</File>
<File
RelativePath="..\..\..\libyasm\md5.c">
</File>
<File
RelativePath="..\..\..\libyasm\mergesort.c">
</File>
<File
RelativePath="..\..\..\module.c">
</File>
<File
RelativePath="..\..\..\libyasm\phash.c">
</File>
<File
RelativePath="..\..\..\libyasm\section.c">
</File>
<File
RelativePath="..\..\..\libyasm\strcasecmp.c">
</File>
<File
RelativePath="..\..\..\libyasm\strsep.c">
</File>
<File
RelativePath="..\..\..\libyasm\symrec.c">
</File>
<File
RelativePath="..\..\..\libyasm\valparam.c">
</File>
<File
RelativePath="..\..\..\libyasm\value.c">
</File>
<File
RelativePath="..\..\..\libyasm\xmalloc.c">
</File>
<File
RelativePath="..\..\..\libyasm\xstrdup.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
<File
RelativePath="..\..\..\libyasm\arch.h">
</File>
<File
RelativePath="..\..\..\libyasm\assocdat.h">
</File>
<File
RelativePath="..\..\..\libyasm\bc-int.h">
</File>
<File
RelativePath="..\..\..\libyasm\bitvect.h">
</File>
<File
RelativePath="..\..\..\libyasm\bytecode.h">
</File>
<File
RelativePath="..\..\..\libyasm\compat-queue.h">
</File>
<File
RelativePath="config.h">
</File>
<File
RelativePath="..\..\..\libyasm\coretype.h">
</File>
<File
RelativePath="..\..\..\libyasm\dbgfmt.h">
</File>
<File
RelativePath="..\..\..\libyasm\errwarn.h">
</File>
<File
RelativePath="..\..\..\libyasm\expr-int.h">
</File>
<File
RelativePath="..\..\..\libyasm\expr.h">
</File>
<File
RelativePath="..\..\..\libyasm\file.h">
</File>
<File
RelativePath="..\..\..\libyasm\floatnum.h">
</File>
<File
RelativePath="..\..\..\libyasm\hamt.h">
</File>
<File
RelativePath="..\..\..\libyasm\intnum.h">
</File>
<File
RelativePath="..\..\..\libyasm\inttree.h">
</File>
<File
RelativePath="..\..\..\libyasm\linemap.h">
</File>
<File
RelativePath="..\..\..\libyasm\md5.h">
</File>
<File
RelativePath="..\..\..\libyasm\objfmt.h">
</File>
<File
RelativePath="..\..\..\libyasm\parser.h">
</File>
<File
RelativePath="..\..\..\libyasm\phash.h">
</File>
<File
RelativePath="..\..\..\libyasm\preproc.h">
</File>
<File
RelativePath="..\..\..\libyasm\section.h">
</File>
<File
RelativePath="..\..\..\libyasm\symrec.h">
</File>
<File
RelativePath="..\..\..\libyasm\util.h">
</File>
<File
RelativePath="..\..\..\libyasm\valparam.h">
</File>
<File
RelativePath="..\..\..\libyasm\value.h">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,311 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="modules"
RootNamespace="modules"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H"
StringPooling="TRUE"
RuntimeLibrary="4"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Release/modules.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Release\modules.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Debug/modules.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Debug\modules.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<Filter
Name="arch"
Filter="">
<File
RelativePath="..\..\..\modules\arch\x86\x86arch.c">
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86arch.h">
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86bc.c">
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86expr.c">
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86id.c">
</File>
</Filter>
<Filter
Name="dbgfmts"
Filter="">
<File
RelativePath="..\..\..\modules\dbgfmts\null\null-dbgfmt.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\stabs\stabs-dbgfmt.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.h">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-symline.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-type.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.h">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-line.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-info.c">
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-aranges.c">
</File>
</Filter>
<Filter
Name="objfmts"
Filter="">
<File
RelativePath="..\..\..\modules\objfmts\bin\bin-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\coff-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\coff-objfmt.h">
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\win64-except.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\dbg\dbg-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-machine.h">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-x86-amd64.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-x86-x86.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf.h">
</File>
<File
RelativePath="..\..\..\modules\objfmts\macho\macho-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\rdf\rdf-objfmt.c">
</File>
<File
RelativePath="..\..\..\modules\objfmts\xdf\xdf-objfmt.c">
</File>
</Filter>
<Filter
Name="parsers"
Filter="">
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parse.c">
</File>
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parser.c">
</File>
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parser.h">
</File>
<File
RelativePath="..\..\..\gas-token.c">
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parse.c">
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parser.c">
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parser.h">
</File>
<File
RelativePath="..\..\..\nasm-token.c">
</File>
</Filter>
<Filter
Name="preprocs"
Filter="">
<Filter
Name="nasm"
Filter="">
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-eval.c">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-eval.h">
</File>
<File
RelativePath="..\..\..\nasm-macros.c">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-pp.c">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-pp.h">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-preproc.c">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm.h">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasmlib.c">
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasmlib.h">
</File>
</Filter>
<Filter
Name="raw"
Filter="">
<File
RelativePath="..\..\..\modules\preprocs\raw\raw-preproc.c">
</File>
</Filter>
</Filter>
<Filter
Name="listfmts"
Filter="">
<Filter
Name="nasm"
Filter="">
<File
RelativePath="..\..\..\modules\listfmts\nasm\nasm-listfmt.c">
</File>
</Filter>
</Filter>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,197 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="re2c"
ProjectGUID="{3C58BE13-50A3-4583-984D-D8902B3D7713}"
RootNamespace="re2c"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/re2c.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/re2c.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/re2c.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="..\..\..\tools\re2c\actions.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\code.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\dfa.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\main.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\mbo_getopt.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\parser.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\scanner.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\substr.c">
</File>
<File
RelativePath="..\..\..\tools\re2c\translate.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath="..\..\..\tools\re2c\basics.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\dfa.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\globals.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\ins.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\mbo_getopt.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\parse.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\parser.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\re.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\scanner.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\substr.h">
</File>
<File
RelativePath="..\..\..\tools\re2c\token.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
<File
RelativePath=".\run.bat">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,94 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libyasm", "libyasm\libyasm.vcproj", "{29FE7874-1256-4AD6-B889-68E399DC9608}"
ProjectSection(ProjectDependencies) = postProject
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0} = {F0E8B707-00C5-4FF2-B8EF-7C39817132A0}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "modules", "modules\modules.vcproj", "{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}"
ProjectSection(ProjectDependencies) = postProject
{3C58BE13-50A3-4583-984D-D8902B3D7713} = {3C58BE13-50A3-4583-984D-D8902B3D7713}
{5758BF4E-ABC4-11DA-B012-B622A1EF5492} = {5758BF4E-ABC4-11DA-B012-B622A1EF5492}
{29FE7874-1256-4AD6-B889-68E399DC9608} = {29FE7874-1256-4AD6-B889-68E399DC9608}
{225700A5-07B8-434E-AD61-555278BF6733} = {225700A5-07B8-434E-AD61-555278BF6733}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yasm", "yasm.vcproj", "{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}"
ProjectSection(ProjectDependencies) = postProject
{29FE7874-1256-4AD6-B889-68E399DC9608} = {29FE7874-1256-4AD6-B889-68E399DC9608}
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6} = {D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}
{021CEB0A-F721-4F59-B349-9CEEAF244459} = {021CEB0A-F721-4F59-B349-9CEEAF244459}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmacro", "genmacro\genmacro.vcproj", "{225700A5-07B8-434E-AD61-555278BF6733}"
ProjectSection(ProjectDependencies) = postProject
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2} = {B545983B-8EE0-4A7B-A67A-E749EEAE62A2}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genversion", "genversion\genversion.vcproj", "{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "re2c", "re2c\re2c.vcproj", "{3C58BE13-50A3-4583-984D-D8902B3D7713}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gap", "gap\gap.vcproj", "{5758BF4E-ABC4-11DA-B012-B622A1EF5492}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmodule", "genmodule\genmodule.vcproj", "{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genstring", "genstring\genstring.vcproj", "{021CEB0A-F721-4F59-B349-9CEEAF244459}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug.ActiveCfg = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug.Build.0 = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release.ActiveCfg = Release|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release.Build.0 = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug.ActiveCfg = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug.Build.0 = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release.ActiveCfg = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release.Build.0 = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug.ActiveCfg = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug.Build.0 = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release.ActiveCfg = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release.Build.0 = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug.ActiveCfg = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug.Build.0 = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release.ActiveCfg = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release.Build.0 = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug.ActiveCfg = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug.Build.0 = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release.ActiveCfg = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release.Build.0 = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug.ActiveCfg = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug.Build.0 = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release.ActiveCfg = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release.Build.0 = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug.ActiveCfg = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug.Build.0 = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release.ActiveCfg = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release.Build.0 = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug.ActiveCfg = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug.Build.0 = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release.ActiveCfg = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release.Build.0 = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug.ActiveCfg = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug.Build.0 = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release.ActiveCfg = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal

View file

@ -1,161 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="yasm"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Debug/yasm.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile=".\Debug/yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/yasm.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Debug/yasm.tlb"
HeaderFileName=""/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC"
StringPooling="TRUE"
RuntimeLibrary="4"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Release/yasm.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile=".\Release/yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
ProgramDatabaseFile=".\Release/yasm.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Release/yasm.tlb"
HeaderFileName=""/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath="..\..\frontends\yasm\yasm-options.c">
</File>
<File
RelativePath="..\..\frontends\yasm\yasm-options.h">
</File>
<File
RelativePath="..\..\frontends\yasm\yasm.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
</Filter>
<Filter
Name="Resource Files"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,181 +0,0 @@
/* $Id: config.h 1137 2004-09-04 01:24:57Z peter $ */
#define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail)
#define yasm__abspath(path) yasm__abspath_win(path)
#define yasm__combpath(from, to) yasm__combpath_win(from, to)
/* */
/* #undef ENABLE_NLS */
/* Define if you have the `abort' function. */
#define HAVE_ABORT 1
/* */
/* #undef HAVE_CATGETS */
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
/* #undef HAVE_DCGETTEXT */
/* Define if you don't have `vprintf' but do have `_doprnt'. */
/* #undef HAVE_DOPRNT */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* */
/* #undef HAVE_GETTEXT */
/* Define if you have the GNU C Library */
/* #undef HAVE_GNU_C_LIBRARY */
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */
/* Define if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */
/* */
/* #undef HAVE_LC_MESSAGES */
/* Define to 1 if you have the <libgen.h> header file. */
/* #undef HAVE_LIBGEN_H */
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* Define if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */
/* Define if you have the `mergesort function. */
/* #undef HAVE_MERGESORT */
/* Define if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* */
/* #undef HAVE_STPCPY */
/* Define if you have the `strcasecmp' function. */
/* #undef HAVE_STRCASECMP */
/* Define if you have the `strcmpi' function. */
/* #undef HAVE_STRCMPI */
/* Define if you have the `stricmp' function. */
#define HAVE__STRICMP 1
/* Define if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the `strncasecmp' function. */
/* #undef HAVE_STRNCASECMP */
/* Define if you have the `strrchr' function. */
/* #undef HAVE_STRRCHR */
/* Define if you have the `strsep' function. */
/* #undef HAVE_STRSEP */
/* Define if you have the <sys/param.h> header file. */
/* #undef HAVE_SYS_PARAM_H */
/* Define if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
/* #undef HAVE_SYS_WAIT_H */
/* Define if you have the `toascii' function. */
#define HAVE_TOASCII 1
#define toascii __toascii
/* Define if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define to 1 if you have the `vsnprintf' function. */
/* #undef HAVE_VSNPRINTF */
/* Name of package */
#define PACKAGE "yasm"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bug-yasm@tortall.net"
/* Define to build version of this package. */
#define PACKAGE_BUILD "HEAD"
/* Define to internal version of this package. */
#define PACKAGE_INTVER "0.6.99"
/* Define to the full name of this package. */
#define PACKAGE_NAME "yasm"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "yasm HEAD"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "yasm"
/* Define to the version of this package. */
#define PACKAGE_VERSION "HEAD"
/* Define if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* The size of a `char', as computed by sizeof. */
/* #undef SIZEOF_CHAR */
/* The size of a `int', as computed by sizeof. */
/* #undef SIZEOF_INT */
/* The size of a `long', as computed by sizeof. */
/* #undef SIZEOF_LONG */
/* The size of a `short', as computed by sizeof. */
/* #undef SIZEOF_SHORT */
/* The size of a `void*', as computed by sizeof. */
/* #undef SIZEOF_VOIDP */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "HEAD"
/* Define if using the dmalloc debugging malloc package */
/* #undef WITH_DMALLOC */
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */

View file

@ -1,233 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="gap"
ProjectGUID="{5758BF4E-ABC4-11DA-B012-B622A1EF5492}"
RootNamespace="gap"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;STDC_HEADERS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/gap.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;STDC_HEADERS"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/gap.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{7D996CB2-ABC4-11DA-B012-B622A1EF5492}"
>
<File
RelativePath="..\..\..\tools\gap\gap.c"
>
</File>
<File
RelativePath="..\..\..\tools\gap\perfect.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\phash.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\xmalloc.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\xstrdup.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{85DD7A94-ABC4-11DA-B012-B622A1EF5492}"
>
<File
RelativePath="..\..\..\tools\gap\perfect.h"
>
</File>
<File
RelativePath="..\..\..\tools\gap\standard.h"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..\
%1 modules\arch\x86\x86parse.gap x86parse.c

View file

@ -1,201 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="genmacro"
ProjectGUID="{225700A5-07B8-434E-AD61-555278BF6733}"
RootNamespace="genmacro"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\genmacro.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genmacro.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\..\modules\preprocs\nasm\genmacro.c"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..
%1 modules\preprocs\nasm\standard.mac version.mac

View file

@ -1,203 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="genmodule"
ProjectGUID="{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}"
RootNamespace="genmodule"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;FILTERMODE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
AssemblerListingLocation="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\genmodule.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;FILTERMODE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
AssemblerListingLocation="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\genmodule.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\..\libyasm\genmodule.c"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,201 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="genstring"
ProjectGUID="{021CEB0A-F721-4F59-B349-9CEEAF244459}"
RootNamespace="genstring"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\genstring.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genstring.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{28EBE11C-5BE8-4935-9381-F57696749E0C}"
>
<File
RelativePath="..\..\..\genstring.c"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,212 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="genversion"
ProjectGUID="{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}"
RootNamespace="genversion"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\vc8"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\genversion.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
AdditionalIncludeDirectories="..\..\vc8"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/genversion.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{E67ED277-E4F2-4D79-8C9E-962BAC164F3F}"
>
<File
RelativePath="..\..\..\modules\preprocs\nasm\genversion.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl"
>
<File
RelativePath="..\config.h"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,2 +0,0 @@
cd ..\..\..
%1 version.mac

View file

@ -1,8 +0,0 @@
#ifndef _UINTPTR_T_DEFINED
#ifdef _WIN64
#include <vadefs.h>
#else
typedef unsigned long uintptr_t;
#endif
#define _UINTPTR_T_DEFINED
#endif

View file

@ -1,571 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="libyasm"
ProjectGUID="{29FE7874-1256-4AD6-B889-68E399DC9608}"
RootNamespace="libyasm"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libyasm.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;_LIB;HAVE_CONFIG_H;WIN64"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libyasm.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libyasm.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;_LIB;HAVE_CONFIG_H;WIN64"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libyasm.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
>
<File
RelativePath="..\..\..\libyasm\arch.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\assocdat.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-align.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-data.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-incbin.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-insn.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-org.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-reserve.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bitvect.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\bytecode.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\errwarn.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\expr.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\file.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\file.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\floatnum.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\hamt.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\intnum.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\inttree.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\linemap.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\md5.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\mergesort.c"
>
</File>
<File
RelativePath="..\..\..\module.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\phash.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\section.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\strcasecmp.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\strsep.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\symrec.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\valparam.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\value.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\xmalloc.c"
>
</File>
<File
RelativePath="..\..\..\libyasm\xstrdup.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl"
>
<File
RelativePath="..\..\..\libyasm\arch.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\assocdat.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\bc-int.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\bitvect.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\bytecode.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\compat-queue.h"
>
</File>
<File
RelativePath="config.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\coretype.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\dbgfmt.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\errwarn.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\expr-int.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\expr.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\floatnum.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\hamt.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\intnum.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\inttree.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\linemap.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\md5.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\objfmt.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\parser.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\phash.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\preproc.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\section.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\symrec.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\util.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\valparam.h"
>
</File>
<File
RelativePath="..\..\..\libyasm\value.h"
>
</File>
</Filter>
<File
RelativePath="..\..\..\libyasm\module.in"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,561 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="modules"
ProjectGUID="{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}"
RootNamespace="modules"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\modules.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="NDEBUG;_LIB;HAVE_CONFIG_H;WIN64"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\modules.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\modules.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="_DEBUG;_LIB;HAVE_CONFIG_H;WIN64"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\modules.lib"
SuppressStartupBanner="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
>
<Filter
Name="arch"
>
<File
RelativePath="..\..\..\modules\arch\x86\x86arch.c"
>
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86arch.h"
>
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86bc.c"
>
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86expr.c"
>
</File>
<File
RelativePath="..\..\..\modules\arch\x86\x86id.c"
>
</File>
</Filter>
<Filter
Name="dbgfmts"
>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.h"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-symline.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\codeview\cv-type.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-aranges.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.h"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-info.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\dwarf2\dwarf2-line.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\null\null-dbgfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\dbgfmts\stabs\stabs-dbgfmt.c"
>
</File>
</Filter>
<Filter
Name="objfmts"
>
<File
RelativePath="..\..\..\modules\objfmts\bin\bin-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\coff-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\coff-objfmt.h"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\coff\win64-except.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\dbg\dbg-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-machine.h"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-x86-amd64.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf-x86-x86.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\elf\elf.h"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\macho\macho-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\rdf\rdf-objfmt.c"
>
</File>
<File
RelativePath="..\..\..\modules\objfmts\xdf\xdf-objfmt.c"
>
</File>
</Filter>
<Filter
Name="parsers"
>
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parse.c"
>
</File>
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parser.c"
>
</File>
<File
RelativePath="..\..\..\modules\parsers\gas\gas-parser.h"
>
</File>
<File
RelativePath="..\..\..\gas-token.c"
>
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parse.c"
>
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parser.c"
>
</File>
<File
RelativePath="..\..\..\modules\parsers\nasm\nasm-parser.h"
>
</File>
<File
RelativePath="..\..\..\nasm-token.c"
>
</File>
</Filter>
<Filter
Name="preprocs"
>
<Filter
Name="nasm"
>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-eval.c"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-eval.h"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-pp.c"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-pp.h"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm-preproc.c"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasm.h"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasmlib.c"
>
</File>
<File
RelativePath="..\..\..\modules\preprocs\nasm\nasmlib.h"
>
</File>
</Filter>
<Filter
Name="raw"
>
<File
RelativePath="..\..\..\modules\preprocs\raw\raw-preproc.c"
>
</File>
</Filter>
</Filter>
<Filter
Name="listfmts"
>
<Filter
Name="nasm"
>
<File
RelativePath="..\..\..\modules\listfmts\nasm\nasm-listfmt.c"
>
</File>
</Filter>
</Filter>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,281 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="re2c"
ProjectGUID="{3C58BE13-50A3-4583-984D-D8902B3D7713}"
RootNamespace="re2c"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/re2c.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="..\crt_secure_no_deprecate.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
AdditionalIncludeDirectories="..,../../.."
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/re2c.exe"
LinkIncremental="1"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="run.bat &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\..\tools\re2c\actions.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\code.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\dfa.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\main.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\mbo_getopt.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\parser.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\scanner.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\substr.c"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\translate.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\..\..\tools\re2c\basics.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\dfa.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\globals.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\ins.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\parse.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\parser.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\re.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\scanner.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\substr.h"
>
</File>
<File
RelativePath="..\..\..\tools\re2c\token.h"
>
</File>
</Filter>
<File
RelativePath=".\run.bat"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,4 +0,0 @@
cd ..\..\..\
%1 -s -o lc3bid.c modules\arch\lc3b\lc3bid.re
%1 -b -o nasm-token.c modules\parsers\nasm\nasm-token.re
%1 -b -o gas-token.c modules\parsers\gas\gas-token.re

View file

@ -1,98 +0,0 @@
Building YASM with Microsoft Visual Studio 2005
-----------------------------------------------
This note describes how to build YASM using Microsoft Visual Studio 2005.
1. The Compiler
---------------
If you want to build the 64-bit version of YASM you will need to install
the Visual Studio 2005 64-bit tools, which are not installed by default.
2. YASM Download
----------------
First YASM needs to be downloaded and the files placed within a suitable
directory, which will be called <yasm> here but can be named and located
as you wish.
3. Building YASM with Microsoft VC8
-----------------------------------
Now locate and double click on the yasm.sln solution file in the 'Mkfiles/vc8'
subdirectory to open the build project in the Visual Studio 2005 IDE and then
select:
win32 or x64 build
release or debug build
as appropriate to build the YASM binaries that you need.
4. Using YASM with Visual Sudio 2005 and VC++ version 8
-------------------------------------------------------
1. Firstly you need to locate the directory (or directories) where the VC++
compiler binaries are located and put copies of the appropriate yasm.exe
binary in these directories.
On a win32 system you will use the win32 version of YASM. On an x64 system
you can use either the 32 or the 64 bit versions. The win32 YASM binary
should be placed in the 32-bit VC++ binary directory, which is typically
located at:
Program Files (x86)\Microsoft Visual Studio 8\VC\bin
If needed the 64-bit YASM binary should be places in the 64-bit tools
binary directory, which is typically at:
Program Files\Microsoft Visual Studio 8\VC\bin
2. To use the new custom tools facility in Visual Studio 2005, you need to
place a copy of the yasm.rules file in the Visual Studio 2005 VC project
defaults directory, which is typically located at:
Program Files (x86)\Microsoft Visual Studio 8\VC\VCProjectDefaults
This allows you to configure YASM as an assembler within the VC++ IDE. To
use YASM in a project, right click on the project in the Solution Explorer
and select 'Custom Build Rules..'. This will give you a dialog box that
allows you to select YASM as an assembler (note that your assembler files
need to have the extension '.asm').
To assemble a file with YASM, select the Property Page for the file and the
select 'Yasm Assembler' in the Tool dialog entry. Then click 'Apply' and an
additional property page entry will appear and enable YASM settings to be
established.
As alternative to placing the yasm.rules files as described above is to set
the rules file path in the Visual Studio 2005 settings dialogue.
It is also important to note that the rules file passes the symbols 'Win32'
or 'x64' to YASM by using the Visual Studio 2005 $(PlatformName) macro in
order to obtain either a 32 or a 64 bit assembler mode. This is a recent
enhancement to YASM so you will need to be sure that your YASM files are at
revision r1331 or higher to use this facility.
5. A Linker Issue
-----------------
There appears to be a linker bug in the VC++ v8 linker that prevents symbols
with absolute addresses being linked in DLL builds. This means, for example,
that LEA instructions of the general form:
lea, rax,[rax+symbol]
cannot be used for DLL builds. The following general form has to be used
instead:
lea rcx,[symbol wrt rip]
lea rax,[rax+rcx]
This limitation may also cause problems with other instruction that use
absolute addresses.
I am most grateful for the fantastic support that Peter Johnson, YASM's
creator, has given me in tracking down this issue.
Brian Gladman, 16th January 2006

View file

@ -1,114 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
Name="Yasm"
Version="8.00"
>
<Rules>
<CustomBuildRule
Name="YASM"
DisplayName="Yasm Assembler"
CommandLine="yasm -Xvc -f $(PlatformName) [PreProc] [Parser] [Debug] [ListFileName] [Defines] [UnDefines] [IncludePaths] [ObjectFileName] [inputs]"
Outputs="[$ObjectFileName]"
FileExtensions="*.asm"
ExecutionDescription="Assembling $(InputFileName)"
ShowOnlyRuleProperties="false"
>
<Properties>
<StringProperty
Name="Defines"
DisplayName="Definitions"
Category="Pre-Defined Symbols"
Description="Specify pre-defined symbols (&apos;symbol&apos; or &apos;symbol = value&apos;) "
Switch="-D [value]"
Delimited="true"
Inheritable="true"
/>
<StringProperty
Name="IncludePaths"
DisplayName="Include Paths"
Category="Configuration"
Description="Set the paths for any additional include files"
Switch="-i &quot;[value]&quot;"
Delimited="true"
Inheritable="true"
/>
<StringProperty
Name="UnDefines"
DisplayName="Remove Definitions"
Category="Pre-Defined Symbols"
Description="Remove pre-defined symbols "
Switch="-u [value]"
Delimited="true"
Inheritable="true"
/>
<StringProperty
Name="ObjectFileName"
DisplayName="Object File Name"
Category="Output"
Description="Select the output file name"
Switch="-o &quot;[value]&quot;"
DefaultValue="&quot;$(IntDir)\$(InputName).obj&quot;"
/>
<StringProperty
Name="ListFileName"
DisplayName="List File Name"
Category="Output"
Description="Select an output listing by setting its file name"
Switch="-l &quot;[value]&quot;"
/>
<StringProperty
Name="PreIncludeFile"
DisplayName="Pre Include File"
Category="Configuration"
Description="Select a pre-included file by setting its name"
Switch="-P &quot;[value]&quot;"
/>
<BooleanProperty
Name="Debug"
DisplayName="Debug Information"
Category="Output"
Description="Generate debugging information"
Switch="-g cv8"
/>
<EnumProperty
Name="PreProc"
DisplayName="Pre-Processor"
Category="Configuration"
Description="Select the pre-processor (&apos;nasm&apos; or &apos;raw&apos;)"
>
<Values>
<EnumValue
Value="0"
Switch="-rnasm"
DisplayName="Nasm "
/>
<EnumValue
Value="1"
Switch="-rraw"
DisplayName="Raw"
/>
</Values>
</EnumProperty>
<EnumProperty
Name="Parser"
DisplayName="Parser"
Category="Configuration"
Description="Select the parser for Intel (&apos;nasm&apos;) or AT&amp;T ( &apos;gas&apos;) syntax"
>
<Values>
<EnumValue
Value="0"
Switch="-pnasm"
DisplayName="Nasm"
/>
<EnumValue
Value="1"
Switch="-pgas"
DisplayName="Gas"
/>
</Values>
</EnumProperty>
</Properties>
</CustomBuildRule>
</Rules>
</VisualStudioToolFile>

View file

@ -1,413 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="yasm"
ProjectGUID="{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}"
RootNamespace="yasm"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets=".\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TypeLibraryName="$(PlatformName)\$(ConfigurationName)/yasm.tlb"
HeaderFileName=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="4"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="true"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(ProjectName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
TypeLibraryName="$(PlatformName)\$(ConfigurationName)/yasm.tlb"
HeaderFileName=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="_DEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="true"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets=".\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TypeLibraryName="$(PlatformName)\$(ConfigurationName)/yasm.tlb"
HeaderFileName=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="true"
GenerateDebugInformation="false"
ProgramDatabaseFile="$(OutDir)\$(ProjectName).pdb"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\crt_secure_no_deprecate.vsprops"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
TypeLibraryName="$(PlatformName)\$(ConfigurationName)/yasm.tlb"
HeaderFileName=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".,../.."
PreprocessorDefinitions="NDEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\"
WarningLevel="3"
SuppressStartupBanner="true"
CompileAs="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\yasm.exe"
LinkIncremental="1"
SuppressStartupBanner="true"
ProgramDatabaseFile="$(OutDir)\$(TargetName).pdb"
SubSystem="1"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
>
<File
RelativePath="..\..\frontends\yasm\yasm-options.c"
>
</File>
<File
RelativePath="..\..\frontends\yasm\yasm.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl"
>
<File
RelativePath="..\..\frontends\yasm\yasm-options.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View file

@ -1,181 +1,170 @@
/* $Id$ */
#define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail)
#define yasm__abspath(path) yasm__abspath_win(path)
#define yasm__combpath(from, to) yasm__combpath_win(from, to)
/* */
/* #undef ENABLE_NLS */
/* Define if you have the `abort' function. */
#define HAVE_ABORT 1
/* */
/* #undef HAVE_CATGETS */
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
/* #undef HAVE_DCGETTEXT */
/* Define if you don't have `vprintf' but do have `_doprnt'. */
/* #undef HAVE_DOPRNT */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* */
/* #undef HAVE_GETTEXT */
/* Define if you have the GNU C Library */
/* #undef HAVE_GNU_C_LIBRARY */
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */
/* Define if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */
/* */
/* #undef HAVE_LC_MESSAGES */
/* Define to 1 if you have the <libgen.h> header file. */
/* #undef HAVE_LIBGEN_H */
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* Define if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */
/* Define if you have the `mergesort function. */
/* #undef HAVE_MERGESORT */
/* Define if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* */
/* #undef HAVE_STPCPY */
/* Define if you have the `strcasecmp' function. */
/* #undef HAVE_STRCASECMP */
/* Define if you have the `strcmpi' function. */
/* #undefine HAVE_STRCMPI */
/* Define if you have the `stricmp' function. */
#define HAVE__STRICMP 1
/* Define if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the `strncasecmp' function. */
/* #undef HAVE_STRNCASECMP */
/* Define if you have the `strrchr' function. */
/* #undef HAVE_STRRCHR */
/* Define if you have the `strsep' function. */
/* #undef HAVE_STRSEP */
/* Define if you have the <sys/param.h> header file. */
/* #undef HAVE_SYS_PARAM_H */
/* Define if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
/* #undef HAVE_SYS_WAIT_H */
/* Define if you have the `toascii' function. */
#define HAVE_TOASCII 1
#define toascii __toascii
/* Define if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define to 1 if you have the `vsnprintf' function. */
/* #undef HAVE_VSNPRINTF */
/* Name of package */
#define PACKAGE "yasm"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bug-yasm@tortall.net"
/* Define to build version of this package. */
#define PACKAGE_BUILD "HEAD"
/* Define to internal version of this package. */
#define PACKAGE_INTVER "0.6.99"
/* Define to the full name of this package. */
#define PACKAGE_NAME "yasm"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "yasm HEAD"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "yasm"
/* Define to the version of this package. */
#define PACKAGE_VERSION "HEAD"
/* Define if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* The size of a `char', as computed by sizeof. */
/* #undef SIZEOF_CHAR */
/* The size of a `int', as computed by sizeof. */
/* #undef SIZEOF_INT */
/* The size of a `long', as computed by sizeof. */
/* #undef SIZEOF_LONG */
/* The size of a `short', as computed by sizeof. */
/* #undef SIZEOF_SHORT */
/* The size of a `void*', as computed by sizeof. */
/* #undef SIZEOF_VOIDP */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "HEAD"
/* Define if using the dmalloc debugging malloc package */
/* #undef WITH_DMALLOC */
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
#include "YASM-VERSION.h"
#define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail)
#define yasm__abspath(path) yasm__abspath_win(path)
#define yasm__combpath(from, to) yasm__combpath_win(from, to)
/* Command name to run C preprocessor */
#define CPP_PROG "cpp"
/* */
/* #undef ENABLE_NLS */
/* Define if you have the `abort' function. */
#define HAVE_ABORT 1
/* */
/* #undef HAVE_CATGETS */
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
CoreFoundation framework. */
/* #undef HAVE_CFLOCALECOPYCURRENT */
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
the CoreFoundation framework. */
/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
/* #undef HAVE_DCGETTEXT */
/* Define to 1 if you have the <direct.h> header file. */
#define HAVE_DIRECT_H 1
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* */
/* #undef HAVE_GETTEXT */
/* Define if you have the GNU C Library */
/* #undef HAVE_GNU_C_LIBRARY */
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */
/* Define if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */
/* */
/* #undef HAVE_LC_MESSAGES */
/* Define to 1 if you have the <libgen.h> header file. */
/* #undef HAVE_LIBGEN_H */
/* Define if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */
/* Define if you have the `mergesort' function. */
/* #undef HAVE_MERGESORT */
/* Define to 1 if you have the `popen' function. */
/* #undef HAVE_POPEN */
/* Define if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* */
/* #undef HAVE_STPCPY */
/* Define if you have the `strcasecmp' function. */
/* #undef HAVE_STRCASECMP */
/* Define if you have the `strcmpi' function. */
/* #undef HAVE_STRCMPI */
/* Define if you have the `stricmp' function. */
/* #undefine HAVE_STRICMP */
/* Define if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the `strncasecmp' function. */
/* #undef HAVE_STRNCASECMP */
/* Define if you have the `strsep' function. */
/* #undef HAVE_STRSEP */
/* Define if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the `toascii' function. */
#define HAVE_TOASCII 1
#define toascii __toascii
/* Define if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */
/* Define to 1 if you have the `vsnprintf' function. */
/* #undef HAVE_VSNPRINTF */
/* Define to 1 if you have the `_stricmp' function. */
#define HAVE__STRICMP 1
/* Name of package */
#define PACKAGE "yasm"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bug-yasm@tortall.net"
/* Define to the full name of this package. */
#define PACKAGE_NAME "yasm"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "yasm HEAD"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "yasm"
/* Define to the version of this package. */
/*#define PACKAGE_VERSION "HEAD"*/
/* Define if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* The size of a `char', as computed by sizeof. */
/* #undef SIZEOF_CHAR */
/* The size of a `int', as computed by sizeof. */
/* #undef SIZEOF_INT */
/* The size of a `long', as computed by sizeof. */
/* #undef SIZEOF_LONG */
/* The size of a `short', as computed by sizeof. */
/* #undef SIZEOF_SHORT */
/* The size of a `void*', as computed by sizeof. */
/* #undef SIZEOF_VOIDP */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "HEAD"
/* Define if using the dmalloc debugging malloc package */
/* #undef WITH_DMALLOC */
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="crt_secure_no_deprecate"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE"
/>
</VisualStudioPropertySheet>
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="crt_secure_no_deprecate"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE"
/>
</VisualStudioPropertySheet>

View file

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{225700A5-07B8-434E-AD61-555278BF6733}</ProjectGuid>
<RootNamespace>genmacro</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmacro.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
<AdditionalIncludeDirectories>..\Mkfiles\vs</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmacro.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmacro.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<AdditionalIncludeDirectories>..\Mkfiles\vs</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmacro.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tools\genmacro\genmacro.c" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\genversion\genversion.vcxproj">
<Project>{b545983b-8ee0-4a7b-a67a-e749eeae62a2}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tools\genmacro\genmacro.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,5 @@
cd ..\..\..
%1 nasm-version.c nasm_version_mac version.mac
%1 nasm-macros.c nasm_standard_mac modules\parsers\nasm\nasm-std.mac
%1 win64-nasm.c win64_nasm_stdmac modules\objfmts\coff\win64-nasm.mac
%1 win64-gas.c win64_gas_stdmac modules\objfmts\coff\win64-gas.mac

View file

@ -0,0 +1,207 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}</ProjectGuid>
<RootNamespace>genmodule</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;FILTERMODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmodule.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\Mkfiles\vs;;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;FILTERMODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmodule.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;FILTERMODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmodule.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..\Mkfiles\vs;;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;FILTERMODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genmodule.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\libyasm\genmodule.c" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\libyasm\genmodule.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
</ItemGroup>
</Project>

View file

@ -1,3 +1,3 @@
@echo off
cd ..\..\..
%1 libyasm\module.in Makefile.am
@echo off
cd ..\..\..
%1 libyasm\module.in Makefile.am

View file

@ -0,0 +1,261 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}</ProjectGuid>
<RootNamespace>genperf</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</PreLinkEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</PreLinkEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</PreLinkEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</PreLinkEventUseInBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;STDC_HEADERS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genperf.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
<CustomBuildStep>
<Command>run.bat "$(TargetPath)"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>x86insn_nasm.c;x86insn_gas.c;x86cpu.c;x86regtmod.c;%(Outputs)</Outputs>
</CustomBuildStep>
<PreBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;STDC_HEADERS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genperf.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
<CustomBuildStep>
<Command>run.bat "$(TargetPath)"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>x86insn_nasm.c;x86insn_gas.c;x86cpu.c;x86regtmod.c;%(Outputs)</Outputs>
</CustomBuildStep>
<PreBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;STDC_HEADERS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genperf.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
<CustomBuildStep>
<Command>run.bat "$(TargetPath)"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>x86insn_nasm.c;x86insn_gas.c;x86cpu.c;x86regtmod.c;%(Outputs)</Outputs>
</CustomBuildStep>
<PreBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;STDC_HEADERS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genperf.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
<CustomBuildStep>
<Command>run.bat "$(TargetPath)"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>x86insn_nasm.c;x86insn_gas.c;x86cpu.c;x86regtmod.c;%(Outputs)</Outputs>
</CustomBuildStep>
<PreBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tools\genperf\genperf.c" />
<ClCompile Include="..\..\..\tools\genperf\perfect.c" />
<ClCompile Include="..\..\..\libyasm\phash.c" />
<ClCompile Include="..\..\..\libyasm\xmalloc.c" />
<ClCompile Include="..\..\..\libyasm\xstrdup.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\..\libyasm\phash.h" />
<ClInclude Include="..\..\..\tools\genperf\perfect.h" />
<ClInclude Include="..\..\..\tools\genperf\standard.h" />
<ClInclude Include="..\..\..\util.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\libyasm-stdint.h" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{3C1E9AA8-6338-4CED-99F1-BEBA80607BD5}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{1062695D-1C50-4068-8313-73A409885BC1}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\libyasm\phash.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\xmalloc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\xstrdup.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\genperf\genperf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\genperf\perfect.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\tools\genperf\perfect.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\genperf\standard.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\util.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\compat-queue.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\libyasm-stdint.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\phash.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\config.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,40 @@
cd ..\..\..
@echo off
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Applications\python.exe\shell\open\command 2^>NUL`) do (set _my_=%%f %%g)
goto try1%errorlevel%
:try10
goto ok
:try11
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\command 2^>NUL`) do (set _my_=%%f %%g)
goto try2%errorlevel%
:try20:
goto ok
:try21:
echo Building without Python ...
goto therest
:ok
echo Building with Python ...
set _res_=%_my_:*REG_SZ=%
set _end_=%_res_:*exe"=%
call set _python_=%%_res_:%_end_%=%%
echo %_python_%
call %_python_% modules\arch\x86\gen_x86_insn.py
:therest
@echo on
call :update %1 x86insn_nasm.gperf x86insn_nasm.c
call :update %1 x86insn_gas.gperf x86insn_gas.c
call :update %1 modules\arch\x86\x86cpu.gperf x86cpu.c
call :update %1 modules\arch\x86\x86regtmod.gperf x86regtmod.c
goto :eof
:update
%1 %2 tf
call mkfiles\vs\out_copy_rename tf .\ %3
del tf

View file

@ -0,0 +1,196 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{021CEB0A-F721-4F59-B349-9CEEAF244459}</ProjectGuid>
<RootNamespace>genstring</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genstring.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genstring.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genstring.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genstring.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\genstring.c" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{28EBE11C-5BE8-4935-9381-F57696749E0C}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\genstring.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
</Project>

View file

@ -1,2 +1,2 @@
cd ..\..\..
%1 license_msg license.c COPYING
cd ..\..\..
%1 license_msg license.c COPYING

View file

@ -0,0 +1,223 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}</ProjectGuid>
<RootNamespace>genversion</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\vc10;..\..\..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genversion.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>cd ..\..\..\
YASM-VERSION-GEN.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\vs;..\..\..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genversion.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>cd ..\..\..\
YASM-VERSION-GEN.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..\..\vc10;..\..\..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genversion.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>cd ..\..\..\
YASM-VERSION-GEN.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..\..\vs;..\..\..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)genversion.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>cd ..\..\..\
YASM-VERSION-GEN.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\modules\preprocs\nasm\genversion.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{2acbec3a-0ed8-4b2e-826e-a84c7d35f205}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{E67ED277-E4F2-4D79-8C9E-962BAC164F3F}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\modules\preprocs\nasm\genversion.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
</Project>

View file

@ -1,2 +1,2 @@
cd ..\..\..
%1 version.mac
cd ..\..\..
%1 version.mac

View file

@ -0,0 +1,2 @@
cd ..\..\..
YASM-VERSION-GEN.bat

View file

@ -1,8 +1,4 @@
#ifndef _UINTPTR_T_DEFINED
#ifdef _WIN64
#include <vadefs.h>
#else
typedef unsigned long uintptr_t;
#endif
#define _UINTPTR_T_DEFINED
#endif
#ifndef _UINTPTR_T_DEFINED
typedef unsigned long uintptr_t;
#define _UINTPTR_T_DEFINED
#endif

View file

@ -0,0 +1,278 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{29FE7874-1256-4AD6-B889-68E399DC9608}</ProjectGuid>
<RootNamespace>libyasm</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)libyasm.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;HAVE_CONFIG_H;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)libyasm.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)libyasm.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;HAVE_CONFIG_H;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)libyasm.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\libyasm\assocdat.c" />
<ClCompile Include="..\..\..\libyasm\bc-align.c" />
<ClCompile Include="..\..\..\libyasm\bc-data.c" />
<ClCompile Include="..\..\..\libyasm\bc-incbin.c" />
<ClCompile Include="..\..\..\libyasm\bc-org.c" />
<ClCompile Include="..\..\..\libyasm\bc-reserve.c" />
<ClCompile Include="..\..\..\libyasm\bitvect.c" />
<ClCompile Include="..\..\..\libyasm\bytecode.c" />
<ClCompile Include="..\..\..\libyasm\errwarn.c" />
<ClCompile Include="..\..\..\libyasm\expr.c" />
<ClCompile Include="..\..\..\libyasm\file.c" />
<ClCompile Include="..\..\..\libyasm\floatnum.c" />
<ClCompile Include="..\..\..\libyasm\hamt.c" />
<ClCompile Include="..\..\..\libyasm\insn.c" />
<ClCompile Include="..\..\..\libyasm\intnum.c" />
<ClCompile Include="..\..\..\libyasm\inttree.c" />
<ClCompile Include="..\..\..\libyasm\linemap.c" />
<ClCompile Include="..\..\..\libyasm\md5.c" />
<ClCompile Include="..\..\..\libyasm\mergesort.c" />
<ClCompile Include="..\..\..\module.c" />
<ClCompile Include="..\..\..\libyasm\phash.c" />
<ClCompile Include="..\..\..\libyasm\section.c" />
<ClCompile Include="..\..\..\libyasm\strcasecmp.c" />
<ClCompile Include="..\..\..\libyasm\strsep.c" />
<ClCompile Include="..\..\..\libyasm\symrec.c" />
<ClCompile Include="..\..\..\libyasm\valparam.c" />
<ClCompile Include="..\..\..\libyasm\value.c" />
<ClCompile Include="..\..\..\libyasm\xmalloc.c" />
<ClCompile Include="..\..\..\libyasm\xstrdup.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm.h" />
<ClInclude Include="..\..\..\libyasm\file.h" />
<ClInclude Include="..\..\..\libyasm\arch.h" />
<ClInclude Include="..\..\..\libyasm\assocdat.h" />
<ClInclude Include="..\..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\..\libyasm\bytecode.h" />
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\..\libyasm\coretype.h" />
<ClInclude Include="..\..\..\libyasm\dbgfmt.h" />
<ClInclude Include="..\..\..\libyasm\errwarn.h" />
<ClInclude Include="..\..\..\libyasm\expr.h" />
<ClInclude Include="..\..\..\libyasm\floatnum.h" />
<ClInclude Include="..\..\..\libyasm\hamt.h" />
<ClInclude Include="..\..\..\libyasm\insn.h" />
<ClInclude Include="..\..\..\libyasm\intnum.h" />
<ClInclude Include="..\..\..\libyasm\inttree.h" />
<ClInclude Include="..\..\..\libyasm\linemap.h" />
<ClInclude Include="..\..\..\libyasm\listfmt.h" />
<ClInclude Include="..\..\..\libyasm\md5.h" />
<ClInclude Include="..\..\..\libyasm\module.h" />
<ClInclude Include="..\..\..\libyasm\objfmt.h" />
<ClInclude Include="..\..\..\libyasm\parser.h" />
<ClInclude Include="..\..\..\libyasm\phash.h" />
<ClInclude Include="..\..\..\libyasm\preproc.h" />
<ClInclude Include="..\..\..\libyasm\section.h" />
<ClInclude Include="..\..\..\libyasm\symrec.h" />
<ClInclude Include="..\..\..\libyasm\valparam.h" />
<ClInclude Include="..\..\..\libyasm\value.h" />
<ClInclude Include="..\..\..\util.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\libyasm-stdint.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\libyasm\module.in" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\genmodule\genmodule.vcxproj">
<Project>{f0e8b707-00c5-4ff2-b8ef-7c39817132a0}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,200 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{4ca3b698-9d01-4e4e-ae00-5c98da045efe}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{68607062-982d-4251-9a1a-30f76474983d}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\libyasm\assocdat.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bc-align.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bc-data.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bc-incbin.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bc-org.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bc-reserve.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bitvect.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\bytecode.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\errwarn.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\expr.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\file.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\floatnum.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\hamt.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\insn.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\intnum.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\inttree.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\linemap.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\md5.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\mergesort.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\phash.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\section.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\strcasecmp.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\strsep.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\symrec.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\valparam.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\value.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\xmalloc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\libyasm\xstrdup.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\module.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm\arch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\assocdat.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\bitvect.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\bytecode.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\compat-queue.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\coretype.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\dbgfmt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\errwarn.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\expr.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\file.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\floatnum.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\hamt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\insn.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\intnum.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\inttree.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\linemap.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\md5.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\objfmt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\parser.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\phash.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\preproc.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\section.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\symrec.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\valparam.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\value.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\config.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\libyasm-stdint.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\listfmt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\module.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\util.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\libyasm\module.in" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,324 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}</ProjectGuid>
<RootNamespace>modules</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)modules.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
<Command>
</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;HAVE_CONFIG_H;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)modules.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)modules.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;HAVE_CONFIG_H;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
<OutputFile>$(OutDir)modules.lib</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\modules\arch\lc3b\lc3barch.c" />
<ClCompile Include="..\..\..\modules\arch\lc3b\lc3bbc.c" />
<ClCompile Include="..\..\..\lc3bid.c" />
<ClCompile Include="..\..\..\modules\arch\x86\x86arch.c" />
<ClCompile Include="..\..\..\modules\arch\x86\x86bc.c" />
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-x32.c" />
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parse-intel.c" />
<ClCompile Include="..\..\..\modules\preprocs\gas\gas-eval.c" />
<ClCompile Include="..\..\..\modules\preprocs\gas\gas-preproc.c" />
<ClCompile Include="..\..\..\x86cpu.c" />
<ClCompile Include="..\..\..\modules\arch\x86\x86expr.c" />
<ClCompile Include="..\..\..\modules\arch\x86\x86id.c" />
<ClCompile Include="..\..\..\x86regtmod.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-symline.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-type.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-aranges.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-info.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-line.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\null\null-dbgfmt.c" />
<ClCompile Include="..\..\..\modules\dbgfmts\stabs\stabs-dbgfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\bin\bin-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\coff\coff-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\dbg\dbg-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-amd64.c" />
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-x86.c" />
<ClCompile Include="..\..\..\modules\objfmts\elf\elf.c" />
<ClCompile Include="..\..\..\modules\objfmts\macho\macho-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\rdf\rdf-objfmt.c" />
<ClCompile Include="..\..\..\modules\objfmts\coff\win64-except.c" />
<ClCompile Include="..\..\..\modules\objfmts\xdf\xdf-objfmt.c" />
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parse.c" />
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parser.c" />
<ClCompile Include="..\..\..\gas-token.c" />
<ClCompile Include="..\..\..\modules\parsers\nasm\nasm-parse.c" />
<ClCompile Include="..\..\..\modules\parsers\nasm\nasm-parser.c" />
<ClCompile Include="..\..\..\nasm-token.c" />
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-eval.c" />
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-pp.c" />
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-preproc.c" />
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasmlib.c" />
<ClCompile Include="..\..\..\modules\preprocs\raw\raw-preproc.c" />
<ClCompile Include="..\..\..\modules\preprocs\cpp\cpp-preproc.c" />
<ClCompile Include="..\..\..\modules\listfmts\nasm\nasm-listfmt.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\libyasm.h" />
<ClInclude Include="..\..\..\libyasm\arch.h" />
<ClInclude Include="..\..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\..\libyasm\bytecode.h" />
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\..\libyasm\coretype.h" />
<ClInclude Include="..\..\..\libyasm\dbgfmt.h" />
<ClInclude Include="..\..\..\libyasm\errwarn.h" />
<ClInclude Include="..\..\..\libyasm\expr.h" />
<ClInclude Include="..\..\..\libyasm\file.h" />
<ClInclude Include="..\..\..\libyasm\floatnum.h" />
<ClInclude Include="..\..\..\libyasm\hamt.h" />
<ClInclude Include="..\..\..\libyasm\insn.h" />
<ClInclude Include="..\..\..\libyasm\intnum.h" />
<ClInclude Include="..\..\..\libyasm\linemap.h" />
<ClInclude Include="..\..\..\libyasm\listfmt.h" />
<ClInclude Include="..\..\..\libyasm\md5.h" />
<ClInclude Include="..\..\..\libyasm\module.h" />
<ClInclude Include="..\..\..\libyasm\objfmt.h" />
<ClInclude Include="..\..\..\libyasm\parser.h" />
<ClInclude Include="..\..\..\libyasm\phash.h" />
<ClInclude Include="..\..\..\libyasm\preproc.h" />
<ClInclude Include="..\..\..\libyasm\section.h" />
<ClInclude Include="..\..\..\libyasm\symrec.h" />
<ClInclude Include="..\..\..\libyasm\valparam.h" />
<ClInclude Include="..\..\..\libyasm\value.h" />
<ClInclude Include="..\..\..\modules\arch\lc3b\lc3barch.h" />
<ClInclude Include="..\..\..\modules\arch\x86\x86arch.h" />
<ClInclude Include="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.h" />
<ClInclude Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.h" />
<ClInclude Include="..\..\..\modules\objfmts\coff\coff-objfmt.h" />
<ClInclude Include="..\..\..\modules\objfmts\elf\elf-machine.h" />
<ClInclude Include="..\..\..\modules\objfmts\elf\elf.h" />
<ClInclude Include="..\..\..\modules\parsers\gas\gas-parser.h" />
<ClInclude Include="..\..\..\modules\parsers\nasm\nasm-parser-struct.h" />
<ClInclude Include="..\..\..\modules\parsers\nasm\nasm-parser.h" />
<ClInclude Include="..\..\..\modules\preprocs\gas\gas-eval.h" />
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm-eval.h" />
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm-pp.h" />
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm.h" />
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasmlib.h" />
<ClInclude Include="..\..\..\util.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\libyasm-stdint.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\genmacro\genmacro.vcxproj">
<Project>{225700a5-07b8-434e-ad61-555278bf6733}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="..\genperf\genperf.vcxproj">
<Project>{c45a8b59-8b59-4d5d-a8e8-fb090f8dd619}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="..\libyasm\libyasm.vcxproj">
<Project>{29fe7874-1256-4ad6-b889-68e399dc9608}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="..\re2c\re2c.vcxproj">
<Project>{3c58be13-50a3-4583-984d-d8902b3d7713}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,256 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{39c89f91-d860-4396-a49f-86b8b7a51c33}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
<Filter Include="Source Files\arch">
<UniqueIdentifier>{be0cdf28-cbed-4774-b3cc-b63e4e3fa0a9}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\dbgfmts">
<UniqueIdentifier>{491cc60a-889b-4f53-aae9-f4d7d6aa667a}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\listfmts">
<UniqueIdentifier>{c084015d-3c3e-4379-8746-ae5cffcec79e}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\listfmts\nasm">
<UniqueIdentifier>{3333e0b3-e95f-44f6-9000-58d4da368360}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\objfmts">
<UniqueIdentifier>{528f2955-ceba-4691-a36c-054f119e3dcc}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\parsers">
<UniqueIdentifier>{81686d52-eb71-4d4a-a830-66c45afb808f}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\preprocs">
<UniqueIdentifier>{98fe1e43-3794-4639-bf29-14b0c569754f}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\preprocs\cpp">
<UniqueIdentifier>{6b3956d4-0bff-4e8e-af61-a7e59b476fa4}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\preprocs\gas">
<UniqueIdentifier>{446fad62-ac17-49e9-8263-33481f04f182}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\preprocs\nasm">
<UniqueIdentifier>{33fb7fc8-61f9-428d-9c94-7a4912fbb678}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\preprocs\raw">
<UniqueIdentifier>{48fc77ec-7d78-4c0a-bfc2-9aa76faf5d7f}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\gas-token.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\lc3bid.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\lc3b\lc3barch.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\lc3b\lc3bbc.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\x86\x86arch.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\x86\x86bc.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\x86\x86expr.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\arch\x86\x86id.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-symline.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\codeview\cv-type.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-aranges.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-info.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-line.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\null\null-dbgfmt.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\dbgfmts\stabs\stabs-dbgfmt.c">
<Filter>Source Files\dbgfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\listfmts\nasm\nasm-listfmt.c">
<Filter>Source Files\listfmts\nasm</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\bin\bin-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\coff\coff-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\coff\win64-except.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\dbg\dbg-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-amd64.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-x86.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\elf\elf.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\macho\macho-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\rdf\rdf-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\xdf\xdf-objfmt.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parse-intel.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parse.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\parsers\gas\gas-parser.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\parsers\nasm\nasm-parse.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\parsers\nasm\nasm-parser.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\cpp\cpp-preproc.c">
<Filter>Source Files\preprocs\cpp</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\gas\gas-eval.c">
<Filter>Source Files\preprocs\gas</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\gas\gas-preproc.c">
<Filter>Source Files\preprocs\gas</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-eval.c">
<Filter>Source Files\preprocs\nasm</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-pp.c">
<Filter>Source Files\preprocs\nasm</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasm-preproc.c">
<Filter>Source Files\preprocs\nasm</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\nasm\nasmlib.c">
<Filter>Source Files\preprocs\nasm</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\preprocs\raw\raw-preproc.c">
<Filter>Source Files\preprocs\raw</Filter>
</ClCompile>
<ClCompile Include="..\..\..\nasm-token.c">
<Filter>Source Files\parsers</Filter>
</ClCompile>
<ClCompile Include="..\..\..\x86cpu.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\x86regtmod.c">
<Filter>Source Files\arch</Filter>
</ClCompile>
<ClCompile Include="..\..\..\modules\objfmts\elf\elf-x86-x32.c">
<Filter>Source Files\objfmts</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\modules\arch\lc3b\lc3barch.h">
<Filter>Source Files\arch</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\arch\x86\x86arch.h">
<Filter>Source Files\arch</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\dbgfmts\codeview\cv-dbgfmt.h">
<Filter>Source Files\dbgfmts</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\dbgfmts\dwarf2\dwarf2-dbgfmt.h">
<Filter>Source Files\dbgfmts</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\objfmts\coff\coff-objfmt.h">
<Filter>Source Files\objfmts</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\objfmts\elf\elf-machine.h">
<Filter>Source Files\objfmts</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\objfmts\elf\elf.h">
<Filter>Source Files\objfmts</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\parsers\gas\gas-parser.h">
<Filter>Source Files\parsers</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\parsers\nasm\nasm-parser.h">
<Filter>Source Files\parsers</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\preprocs\gas\gas-eval.h">
<Filter>Source Files\preprocs\gas</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm-eval.h">
<Filter>Source Files\preprocs\nasm</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm-pp.h">
<Filter>Source Files\preprocs\nasm</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasm.h">
<Filter>Source Files\preprocs\nasm</Filter>
</ClInclude>
<ClInclude Include="..\..\..\modules\preprocs\nasm\nasmlib.h">
<Filter>Source Files\preprocs\nasm</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\arch.h" />
<ClInclude Include="..\..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\..\libyasm\bytecode.h" />
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\..\..\libyasm\coretype.h" />
<ClInclude Include="..\..\..\libyasm\dbgfmt.h" />
<ClInclude Include="..\..\..\libyasm\errwarn.h" />
<ClInclude Include="..\..\..\libyasm\expr.h" />
<ClInclude Include="..\..\..\libyasm\file.h" />
<ClInclude Include="..\..\..\libyasm\floatnum.h" />
<ClInclude Include="..\..\..\libyasm\hamt.h" />
<ClInclude Include="..\..\..\libyasm\insn.h" />
<ClInclude Include="..\..\..\libyasm\intnum.h" />
<ClInclude Include="..\libyasm-stdint.h" />
<ClInclude Include="..\..\..\libyasm.h" />
<ClInclude Include="..\..\..\libyasm\listfmt.h" />
<ClInclude Include="..\..\..\libyasm\md5.h" />
<ClInclude Include="..\..\..\libyasm\module.h" />
<ClInclude Include="..\..\..\modules\parsers\nasm\nasm-parser-struct.h" />
<ClInclude Include="..\..\..\libyasm\objfmt.h" />
<ClInclude Include="..\..\..\libyasm\parser.h" />
<ClInclude Include="..\..\..\libyasm\phash.h" />
<ClInclude Include="..\..\..\libyasm\preproc.h" />
<ClInclude Include="..\..\..\libyasm\value.h" />
<ClInclude Include="..\..\..\libyasm\valparam.h" />
<ClInclude Include="..\..\..\libyasm\symrec.h" />
<ClInclude Include="..\..\..\libyasm\linemap.h" />
<ClInclude Include="..\..\..\libyasm\section.h" />
<ClInclude Include="..\..\..\util.h" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,42 @@
@echo off
if not exist %1 goto nofile
if exist %2 goto copy
echo creating directory %2
md %2 > nul
:copy
set str=%2
for /f "useback tokens=*" %%a in ('%str%') do set str=%%~a
set str=%str:~-1%
if %str% == "\" goto hasbackslash
if not exist %2\%3 goto cpy
fc %1 %2\%3 > nul && if not %errorlevel 1 goto exit
echo overwriting %2\%3 with %1
copy %1 %2\%3 > nul
goto exit
:cpy
echo copying %1 to %2\%3
copy %1 %2\%3 > nul
goto exit
:hasbackslash
if not exist %2%3 goto cpy2
fc %1 %2%3 > nul && if not %errorlevel 1 goto exit
echo overwriting %2%3 with %1
copy %1 %2%3 > nul
goto exit
:cpy2
echo copying %1 to %2%3
copy %1 %2%3 > nul
goto exit
:nofile
echo %1 not found
:exit

View file

@ -0,0 +1,221 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3C58BE13-50A3-4583-984D-D8902B3D7713}</ProjectGuid>
<RootNamespace>re2c</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="..\crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<OutputFile>$(OutDir)re2c.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<OutputFile>$(OutDir)re2c.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)re2c.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>..;../../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)re2c.exe</OutputFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
</Link>
<PostBuildEvent>
<Command>run.bat "$(TargetPath)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tools\re2c\actions.c" />
<ClCompile Include="..\..\..\tools\re2c\code.c" />
<ClCompile Include="..\..\..\tools\re2c\dfa.c" />
<ClCompile Include="..\..\..\tools\re2c\main.c" />
<ClCompile Include="..\..\..\tools\re2c\mbo_getopt.c" />
<ClCompile Include="..\..\..\tools\re2c\parser.c" />
<ClCompile Include="..\..\..\tools\re2c\scanner.c" />
<ClCompile Include="..\..\..\tools\re2c\substr.c" />
<ClCompile Include="..\..\..\tools\re2c\translate.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\tools\re2c\basics.h" />
<ClInclude Include="..\..\..\tools\re2c\dfa.h" />
<ClInclude Include="..\..\..\tools\re2c\globals.h" />
<ClInclude Include="..\..\..\tools\re2c\ins.h" />
<ClInclude Include="..\..\..\tools\re2c\mbo_getopt.h" />
<ClInclude Include="..\..\..\tools\re2c\parse.h" />
<ClInclude Include="..\..\..\tools\re2c\parser.h" />
<ClInclude Include="..\..\..\tools\re2c\re.h" />
<ClInclude Include="..\..\..\tools\re2c\scanner.h" />
<ClInclude Include="..\..\..\tools\re2c\substr.h" />
<ClInclude Include="..\..\..\tools\re2c\token.h" />
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tools\re2c\actions.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\code.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\dfa.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\main.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\mbo_getopt.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\parser.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\scanner.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\substr.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tools\re2c\translate.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\tools\re2c\basics.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\dfa.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\globals.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\ins.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\parse.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\parser.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\re.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\scanner.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\substr.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\token.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tools\re2c\mbo_getopt.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="run.bat" />
</ItemGroup>
</Project>

View file

@ -1,4 +1,4 @@
cd ..\..\..\
%1 -s -o lc3bid.c modules\arch\lc3b\lc3bid.re
%1 -b -o nasm-token.c modules\parsers\nasm\nasm-token.re
%1 -b -o gas-token.c modules\parsers\gas\gas-token.re
cd ..\..\..\
%1 -s -o lc3bid.c modules\arch\lc3b\lc3bid.re
%1 -b -o nasm-token.c modules\parsers\nasm\nasm-token.re
%1 -b -o gas-token.c modules\parsers\gas\gas-token.re

96
Mkfiles/vs/readme.vs.txt Normal file
View file

@ -0,0 +1,96 @@
Building YASM with Microsoft Visual Studio
------------------------------------------
This note describes how to build YASM using Microsoft Visual
Studio 2019 and later versions.
1. YASM Download
----------------
First YASM needs to be downloaded and the files placed within
a suitable directory, which will be called <yasm> here but can
be named and located as you wish.
2. Building YASM
----------------
Now locate and double click on the yasm.sln solution file in
the 'Mkfiles/vs' subdirectory to open the build project in
the Visual Studio IDE and then select:
win32 or x64 build
release or debug build
as appropriate to build the YASM binaries that you need.
4. Using YASM with Visual Sudio
-------------------------------
The YASM version vsyasm.exe is designed specifically for use
with the 2010 and later versions of Visual Studio. To tell
Visual Studio where to find vsyasm.exe, the environment
variable YASMPATH can be set to the absolute path of the
directory in which vsyasm.exe is located (this path should
include the final backslash).
Alternatively you can find the directory (or directories)
where the VC++ compiler binaries are located and put copies
of the vsyasm.exe binary in these directories.
Depending on your system you can use either the win32 or the
x64 version of vsyasm.exe, which must be named vsyasm.exe.
To use the custom tools facility in Visual Studio you need to
place a copy of three files - yasm.props, yasm.targets and
yasm.xml - into a location where they can be found by the
Visual Studio build customisation processes. There are several
ways to do this:
a. put these files in the MSBUILD customisation directory
b. put them in a convenient location and set this path in the
'Build Customisations Search Path' in the Visual Studio
'Projects and Solutions|VC++ Project Settings' item in
the 'Tools|Options' menu;
c. put them in a convenient location and set this path in the
'Build Customisation dialogue (discussed later).
To use YASM in a project, right click on the project in the Solution
Explorer and select 'Build Customisations..'. This will give you a
dialog box that allows you to select YASM as an assembler (note that
your assembler files need to have the extension '.asm'). If you have
used option c. above, you will need to let the dialogue find them
using the 'Find Existing' button below the dialogue.
To assemble a file with YASM, select the Property Page for the file
and the select 'Yasm Assembler' in the Tool dialog entry. Then click
'Apply' and an additional property page entry will appear and enable
YASM settings to be established.
5. A Linker Issue
-----------------
There appears to be a linker bug in the VC++ linker that prevents
symbols with absolute addresses being linked in DLL builds. This
means, for example, that LEA instructions of the general form:
lea, rax,[rax+symbol]
cannot be used for DLL builds. The following general form
has to be used instead:
lea rcx,[symbol wrt rip]
lea rax,[rax+rcx]
This limitation may also cause problems with other instruction
that use absolute addresses.
6. Acknowledgements
-------------------
I am most grateful for the fantastic support that Peter Johnson,
YASM's creator, has given me in tracking down issues in using
YASM for the production of Windows x64 code.
Brian Gladman, 16th May 2019

27
Mkfiles/vs/vsyasm.props Normal file
View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup
Condition="'$(YASMBeforeTargets)' == '' and '$(YASMAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
<YASMBeforeTargets>Midl</YASMBeforeTargets>
<YASMAfterTargets>CustomBuild</YASMAfterTargets>
</PropertyGroup>
<PropertyGroup>
<YASMDependsOn
Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(YASMDependsOn)</YASMDependsOn>
</PropertyGroup>
<PropertyGroup>
<YASM_PATH Condition= "'$(YASM_PATH)' == ''">C:\Program Files\yasm\</YASM_PATH>
</PropertyGroup>
<ItemDefinitionGroup>
<YASM>
<Debug>False</Debug>
<ObjectFile>$(IntDir)%(FileName).obj</ObjectFile>
<PreProc>0</PreProc>
<Parser>0</Parser>
<CommandLineTemplate>"$(YASM_PATH.TrimEnd('\'))"\vsyasm.exe -Xvc -f $(Platform) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate>
<Outputs>%(ObjectFile)</Outputs>
<ExecutionDescription>Assembling %(Filename)%(Extension) ==> $(IntDir)%(FileName).obj</ExecutionDescription>
<ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
</YASM>
</ItemDefinitionGroup>
</Project>

110
Mkfiles/vs/vsyasm.targets Normal file
View file

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="YASM">
<Targets>_YASM</Targets>
</AvailableItemName>
</ItemGroup>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeYASMOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeYASMOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<UsingTask
TaskName="YASM"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target Name="_WriteYASMTlogs"
Condition="'@(YASM)' != '' and '@(SelectedFiles)' == ''">
<ItemGroup>
<_YASMReadTlog
Include="^%(YASM.FullPath);%(YASM.AdditionalDependencies)"
Condition="'%(YASM.ExcludedFromBuild)' != 'true' and '%(YASM.ObjectFile)' != ''"/>
<_YASMWriteTlog
Include="^%(YASM.FullPath);$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '%(YASM.ObjectFile)'))"
Condition="'%(YASM.ExcludedFromBuild)' != 'true' and '%(YASM.ObjectFile)' != ''"/>
</ItemGroup>
<WriteLinesToFile
Condition="'@(_YASMReadTlog)' != ''"
File="$(TLogLocation)YASM.read.1u.tlog"
Lines="@(_YASMReadTlog->MetaData('Identity')->ToUpperInvariant());"
Overwrite="true"
Encoding="Unicode"/>
<WriteLinesToFile
Condition="'@(_YASMWriteTlog)' != ''"
File="$(TLogLocation)YASM.write.1u.tlog"
Lines="@(_YASMWriteTlog->MetaData('Identity')->ToUpperInvariant());"
Overwrite="true"
Encoding="Unicode"/>
<ItemGroup>
<_YASMReadTlog Remove="@(_YASMReadTlog)" />
<_YASMWriteTlog Remove="@(_YASMWriteTlog)" />
</ItemGroup>
</Target>
<Target
Name="_YASM"
BeforeTargets="$(YASMBeforeTargets)"
AfterTargets="$(YASMAfterTargets)"
Condition="'@(YASM)' != ''"
Inputs="%(YASM.Identity);%(YASM.AdditionalDependencies);$(MSBuildProjectFile)"
Outputs="%(YASM.ObjectFile)"
DependsOnTargets="PrepareForBuild;_WriteYasmTlogs;_SelectedFiles;$(YASMDependsOn);">
<ItemGroup Condition="'@(SelectedFiles)' != ''">
<YASM Remove="@(YASM)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<Message
Importance="High"
Text="%(YASM.ExecutionDescription)" />
<YASM
Condition="'@(YASM)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(YASM.CommandLineTemplate)"
Debug="%(YASM.Debug)"
PreIncludeFile="%(YASM.PreIncludeFile)"
IncludePaths="%(YASM.IncludePaths)"
Defines="%(YASM.Defines)"
UnDefines="%(YASM.UnDefines)"
ObjectFile="%(YASM.ObjectFile)"
ListFile="%(YASM.ListFile)"
MapFile="%(YASM.MapFile)"
ErrorFile="%(YASM.ErrorFile)"
SymbolPrefix="%(YASM.SymbolPrefix)"
SymbolSuffix="%(YASM.SymbolSuffix)"
PreProc="%(YASM.PreProc)"
Parser="%(YASM.Parser)"
AdditionalOptions="%(YASM.AdditionalOptions)"
Inputs="%(YASM.Identity)" />
</Target>
<Target
Name="ComputeYASMOutput"
Condition="'@(YASM)' != ''">
<ItemGroup>
<Link Include="@(YASM->Metadata('ObjectFile')->Distinct()->ClearMetadata())" Condition="'%(YASM.ExcludedFromBuild)' != 'true'"/>
<Lib Include="@(YASM->Metadata('ObjectFile')->Distinct()->ClearMetadata())" Condition="'%(YASM.ExcludedFromBuild)' != 'true'"/>
</ItemGroup>
</Target>
</Project>

280
Mkfiles/vs/vsyasm.vcxproj Normal file
View file

@ -0,0 +1,280 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{7FDD85BB-CC86-442B-A425-989B5B296ED5}</ProjectGuid>
<RootNamespace>vsyasm</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)vsyasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)vsyasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)vsyasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)vsyasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\frontends\vsyasm\vsyasm.c" />
<ClCompile Include="..\..\frontends\yasm\yasm-options.c" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="libyasm\libyasm.vcxproj">
<Project>{29fe7874-1256-4ad6-b889-68e399dc9608}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="modules\modules.vcxproj">
<Project>{d715a3d4-efaa-442e-ad8b-5b4ff64e1dd6}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\yasm\yasm-options.h" />
<ClInclude Include="..\..\frontends\yasm\yasm-plugin.h" />
<ClInclude Include="..\..\libyasm.h" />
<ClInclude Include="..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\util.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

283
Mkfiles/vs/vsyasm.xml Normal file
View file

@ -0,0 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
<Rule
Name="YASM"
PageTemplate="tool"
DisplayName="Yasm Assembler"
Order="200">
<Rule.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="YASM" />
</Rule.DataSource>
<Rule.Categories>
<Category
Name="General">
<Category.DisplayName>
<sys:String>General</sys:String>
</Category.DisplayName>
</Category>
<Category
Name="Symbols">
<Category.DisplayName>
<sys:String>Symbols</sys:String>
</Category.DisplayName>
</Category>
<Category
Name="Files">
<Category.DisplayName>
<sys:String>Files</sys:String>
</Category.DisplayName>
</Category>
<Category
Name="Command Line"
Subtype="CommandLine">
<Category.DisplayName>
<sys:String>Command Line</sys:String>
</Category.DisplayName>
</Category>
</Rule.Categories>
<StringListProperty
Name="Inputs"
Category="Command Line"
IsRequired="true"
Switch=" ">
<StringListProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="YASM"
SourceType="Item" />
</StringListProperty.DataSource>
</StringListProperty>
<BoolProperty
Name="Debug"
Subcategory="Configuration"
HelpContext="0"
DisplayName="Debug Information"
Description="Generate debugging information"
Switch="-g cv8" />
<StringListProperty
Name="IncludePaths"
Subcategory="Configuration"
HelpContext="0"
DisplayName="Include Paths"
Description="Set the paths for any additional include files"
Switch="-i &quot;[value]&quot;" />
<StringListProperty
Name="Defines"
Category="Symbols"
Subcategory="Pre-Defined Symbols"
HelpContext="0"
DisplayName="Defined Symbols"
Description="Specify pre-defined symbols ('symbol' or 'symbol = value') "
Switch="-d &quot;[value]&quot;" />
<StringListProperty
Name="UnDefines"
Category="Symbols"
Subcategory="Pre-Defined Symbols"
HelpContext="0"
DisplayName="Remove Symbols"
Description="Remove pre-defined symbols "
Switch="-u &quot;[value]&quot;" />
<StringProperty
Name="ObjectFile"
Subcategory="Output"
HelpContext="0"
DisplayName="Object File Name"
Description="Select the output file name"
Switch="-o &quot;[value]&quot;" />
<StringProperty
Name="ListFile"
Category="Files"
Subcategory="Output"
HelpContext="0"
DisplayName="List File Name"
Description="Select an output listing by setting its file name"
Switch="-l &quot;[value]&quot;" />
<StringProperty
Name="PreIncludeFile"
Category="Files"
Subcategory="Configuration"
HelpContext="0"
DisplayName="Pre Include File"
Description="Select a pre-included file by setting its name"
Switch="-P &quot;[value]&quot;" />
<StringProperty
Name="MapFile"
Category="Files"
Subcategory="Output"
HelpContext="0"
DisplayName="Map File Name"
Description="Select a map output by setting its file name"
Switch="--mapdir=&quot;[value]&quot;" />
<StringProperty
Name="ErrorFile"
Category="Files"
Subcategory="Output"
HelpContext="0"
DisplayName="Error File Name"
Description="Send error/warning messages to a file by setting its name"
Switch="-E &quot;[value]&quot;" />
<StringProperty
Name="SymbolPrefix"
Category="Symbols"
Subcategory="Symbols"
HelpContext="0"
DisplayName="External Symbol Prefix"
Description="Prepend symbol to all external symbols"
Switch="--prefix=&quot;[value]&quot;" />
<StringProperty
Name="SymbolSuffix"
Category="Symbols"
Subcategory="Symbols"
HelpContext="0"
DisplayName="External Symbol Suffix"
Description="Append symbol to all external symbols"
Switch="--suffix=&quot;[value]&quot;" />
<EnumProperty
Name="PreProc"
Subcategory="Configuration"
HelpContext="0"
DisplayName="Pre-Processor"
Description="Select the pre-processor ('nasm' or 'raw')">
<EnumValue
Name="0"
DisplayName="Nasm "
Switch="-rnasm" />
<EnumValue
Name="1"
DisplayName="Raw"
Switch="-rraw" />
</EnumProperty>
<EnumProperty
Name="Parser"
Subcategory="Configuration"
HelpContext="0"
DisplayName="Parser"
Description="Select the parser for Intel ('nasm') or AT&amp;T ( 'gas') syntax">
<EnumValue
Name="0"
DisplayName="Nasm"
Switch="-pnasm" />
<EnumValue
Name="1"
DisplayName="Gas"
Switch="-pgas" />
</EnumProperty>
<StringProperty
Name="CommandLineTemplate"
DisplayName="Command Line"
Visible="False"
IncludeInCommandLine="False" />
<DynamicEnumProperty
Name="YASMBeforeTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute Before</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run before.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^YASMBeforeTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<DynamicEnumProperty
Name="YASMAfterTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute After</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run after.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^YASMAfterTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType=""
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<StringListProperty
Name="Outputs"
DisplayName="Outputs"
Visible="False"
IncludeInCommandLine="False" />
<StringProperty
Name="ExecutionDescription"
DisplayName="Execution Description"
Visible="False"
IncludeInCommandLine="False" />
<StringListProperty
Name="AdditionalDependencies"
DisplayName="Additional Dependencies"
IncludeInCommandLine="False"
Visible="true" />
<StringProperty
Subtype="AdditionalOptions"
Name="AdditionalOptions"
Category="Command Line">
<StringProperty.DisplayName>
<sys:String>Additional Options</sys:String>
</StringProperty.DisplayName>
<StringProperty.Description>
<sys:String>Additional Options</sys:String>
</StringProperty.Description>
</StringProperty>
</Rule>
<ItemType
Name="YASM"
DisplayName="Yasm Assembler" />
<FileExtension
Name="*.asm"
ContentType="YASM" />
<ContentType
Name="YASM"
DisplayName="Yasm Assembler"
ItemType="YASM" />
</ProjectSchemaDefinitions>

View file

@ -1,128 +1,145 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libyasm", "libyasm\libyasm.vcproj", "{29FE7874-1256-4AD6-B889-68E399DC9608}"
ProjectSection(ProjectDependencies) = postProject
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0} = {F0E8B707-00C5-4FF2-B8EF-7C39817132A0}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "modules", "modules\modules.vcproj", "{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}"
ProjectSection(ProjectDependencies) = postProject
{3C58BE13-50A3-4583-984D-D8902B3D7713} = {3C58BE13-50A3-4583-984D-D8902B3D7713}
{5758BF4E-ABC4-11DA-B012-B622A1EF5492} = {5758BF4E-ABC4-11DA-B012-B622A1EF5492}
{29FE7874-1256-4AD6-B889-68E399DC9608} = {29FE7874-1256-4AD6-B889-68E399DC9608}
{225700A5-07B8-434E-AD61-555278BF6733} = {225700A5-07B8-434E-AD61-555278BF6733}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yasm", "yasm.vcproj", "{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}"
ProjectSection(ProjectDependencies) = postProject
{021CEB0A-F721-4F59-B349-9CEEAF244459} = {021CEB0A-F721-4F59-B349-9CEEAF244459}
{29FE7874-1256-4AD6-B889-68E399DC9608} = {29FE7874-1256-4AD6-B889-68E399DC9608}
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6} = {D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmacro", "genmacro\genmacro.vcproj", "{225700A5-07B8-434E-AD61-555278BF6733}"
ProjectSection(ProjectDependencies) = postProject
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2} = {B545983B-8EE0-4A7B-A67A-E749EEAE62A2}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genversion", "genversion\genversion.vcproj", "{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "re2c", "re2c\re2c.vcproj", "{3C58BE13-50A3-4583-984D-D8902B3D7713}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gap", "gap\gap.vcproj", "{5758BF4E-ABC4-11DA-B012-B622A1EF5492}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmodule", "genmodule\genmodule.vcproj", "{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genstring", "genstring\genstring.vcproj", "{021CEB0A-F721-4F59-B349-9CEEAF244459}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{825AC694-358C-4D8D-92DE-33A2691978CE}"
ProjectSection(SolutionItems) = preProject
crt_secure_no_deprecate.vsprops = crt_secure_no_deprecate.vsprops
readme.vc8.txt = readme.vc8.txt
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|Win32.ActiveCfg = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|Win32.Build.0 = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|x64.ActiveCfg = Debug|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|x64.Build.0 = Debug|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|Win32.ActiveCfg = Release|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|Win32.Build.0 = Release|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|x64.ActiveCfg = Release|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|x64.Build.0 = Release|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|Win32.ActiveCfg = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|Win32.Build.0 = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|x64.ActiveCfg = Debug|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|x64.Build.0 = Debug|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|Win32.ActiveCfg = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|Win32.Build.0 = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|x64.ActiveCfg = Release|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|x64.Build.0 = Release|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|Win32.ActiveCfg = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|Win32.Build.0 = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|x64.ActiveCfg = Debug|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|x64.Build.0 = Debug|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|Win32.ActiveCfg = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|Win32.Build.0 = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|x64.ActiveCfg = Release|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|x64.Build.0 = Release|x64
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|Win32.ActiveCfg = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|Win32.Build.0 = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|x64.ActiveCfg = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|x64.Build.0 = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|Win32.ActiveCfg = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|Win32.Build.0 = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|x64.ActiveCfg = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|x64.Build.0 = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|Win32.ActiveCfg = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|Win32.Build.0 = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|x64.ActiveCfg = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|x64.Build.0 = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|Win32.ActiveCfg = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|Win32.Build.0 = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|x64.ActiveCfg = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|x64.Build.0 = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|Win32.ActiveCfg = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|Win32.Build.0 = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|x64.ActiveCfg = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|x64.Build.0 = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|Win32.ActiveCfg = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|Win32.Build.0 = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|x64.ActiveCfg = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|x64.Build.0 = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug|Win32.ActiveCfg = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug|Win32.Build.0 = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug|x64.ActiveCfg = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Debug|x64.Build.0 = Debug|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release|Win32.ActiveCfg = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release|Win32.Build.0 = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release|x64.ActiveCfg = Release|Win32
{5758BF4E-ABC4-11DA-B012-B622A1EF5492}.Release|x64.Build.0 = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|Win32.ActiveCfg = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|Win32.Build.0 = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|x64.ActiveCfg = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|x64.Build.0 = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|Win32.ActiveCfg = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|Win32.Build.0 = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|x64.ActiveCfg = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|x64.Build.0 = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|Win32.ActiveCfg = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|Win32.Build.0 = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|x64.ActiveCfg = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|x64.Build.0 = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|Win32.ActiveCfg = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|Win32.Build.0 = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|x64.ActiveCfg = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|x64.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30320.27
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{825AC694-358C-4D8D-92DE-33A2691978CE}"
ProjectSection(SolutionItems) = preProject
crt_secure_no_deprecate.vsprops = crt_secure_no_deprecate.vsprops
readme.vs.txt = readme.vs.txt
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libyasm", "libyasm\libyasm.vcxproj", "{29FE7874-1256-4AD6-B889-68E399DC9608}"
ProjectSection(ProjectDependencies) = postProject
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2} = {B545983B-8EE0-4A7B-A67A-E749EEAE62A2}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "modules", "modules\modules.vcxproj", "{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yasm", "yasm.vcxproj", "{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmacro", "genmacro\genmacro.vcxproj", "{225700A5-07B8-434E-AD61-555278BF6733}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genversion", "genversion\genversion.vcxproj", "{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "re2c", "re2c\re2c.vcxproj", "{3C58BE13-50A3-4583-984D-D8902B3D7713}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genperf", "genperf\genperf.vcxproj", "{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genmodule", "genmodule\genmodule.vcxproj", "{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "genstring", "genstring\genstring.vcxproj", "{021CEB0A-F721-4F59-B349-9CEEAF244459}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ytasm", "ytasm.vcxproj", "{2162937B-0DBD-4450-B45F-DF578D8E7508}"
ProjectSection(ProjectDependencies) = postProject
{021CEB0A-F721-4F59-B349-9CEEAF244459} = {021CEB0A-F721-4F59-B349-9CEEAF244459}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vsyasm", "vsyasm.vcxproj", "{7FDD85BB-CC86-442B-A425-989B5B296ED5}"
ProjectSection(ProjectDependencies) = postProject
{021CEB0A-F721-4F59-B349-9CEEAF244459} = {021CEB0A-F721-4F59-B349-9CEEAF244459}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|Win32.ActiveCfg = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|Win32.Build.0 = Debug|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|x64.ActiveCfg = Debug|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Debug|x64.Build.0 = Debug|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|Win32.ActiveCfg = Release|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|Win32.Build.0 = Release|Win32
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|x64.ActiveCfg = Release|x64
{29FE7874-1256-4AD6-B889-68E399DC9608}.Release|x64.Build.0 = Release|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|Win32.ActiveCfg = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|Win32.Build.0 = Debug|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|x64.ActiveCfg = Debug|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Debug|x64.Build.0 = Debug|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|Win32.ActiveCfg = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|Win32.Build.0 = Release|Win32
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|x64.ActiveCfg = Release|x64
{D715A3D4-EFAA-442E-AD8B-5B4FF64E1DD6}.Release|x64.Build.0 = Release|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|Win32.ActiveCfg = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|Win32.Build.0 = Debug|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|x64.ActiveCfg = Debug|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Debug|x64.Build.0 = Debug|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|Win32.ActiveCfg = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|Win32.Build.0 = Release|Win32
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|x64.ActiveCfg = Release|x64
{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}.Release|x64.Build.0 = Release|x64
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|Win32.ActiveCfg = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|Win32.Build.0 = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|x64.ActiveCfg = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Debug|x64.Build.0 = Debug|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|Win32.ActiveCfg = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|Win32.Build.0 = Release|Win32
{225700A5-07B8-434E-AD61-555278BF6733}.Release|x64.ActiveCfg = Release|x64
{225700A5-07B8-434E-AD61-555278BF6733}.Release|x64.Build.0 = Release|x64
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|Win32.ActiveCfg = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|Win32.Build.0 = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|x64.ActiveCfg = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Debug|x64.Build.0 = Debug|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|Win32.ActiveCfg = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|Win32.Build.0 = Release|Win32
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|x64.ActiveCfg = Release|x64
{B545983B-8EE0-4A7B-A67A-E749EEAE62A2}.Release|x64.Build.0 = Release|x64
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|Win32.ActiveCfg = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|Win32.Build.0 = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|x64.ActiveCfg = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Debug|x64.Build.0 = Debug|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|Win32.ActiveCfg = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|Win32.Build.0 = Release|Win32
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|x64.ActiveCfg = Release|x64
{3C58BE13-50A3-4583-984D-D8902B3D7713}.Release|x64.Build.0 = Release|x64
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Debug|Win32.ActiveCfg = Debug|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Debug|Win32.Build.0 = Debug|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Debug|x64.ActiveCfg = Debug|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Debug|x64.Build.0 = Debug|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Release|Win32.ActiveCfg = Release|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Release|Win32.Build.0 = Release|Win32
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Release|x64.ActiveCfg = Release|x64
{C45A8B59-8B59-4D5D-A8E8-FB090F8DD619}.Release|x64.Build.0 = Release|x64
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|Win32.ActiveCfg = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|Win32.Build.0 = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|x64.ActiveCfg = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Debug|x64.Build.0 = Debug|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|Win32.ActiveCfg = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|Win32.Build.0 = Release|Win32
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|x64.ActiveCfg = Release|x64
{F0E8B707-00C5-4FF2-B8EF-7C39817132A0}.Release|x64.Build.0 = Release|x64
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|Win32.ActiveCfg = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|Win32.Build.0 = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|x64.ActiveCfg = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Debug|x64.Build.0 = Debug|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|Win32.ActiveCfg = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|Win32.Build.0 = Release|Win32
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|x64.ActiveCfg = Release|x64
{021CEB0A-F721-4F59-B349-9CEEAF244459}.Release|x64.Build.0 = Release|x64
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Debug|Win32.ActiveCfg = Debug|Win32
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Debug|Win32.Build.0 = Debug|Win32
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Debug|x64.ActiveCfg = Debug|x64
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Debug|x64.Build.0 = Debug|x64
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Release|Win32.ActiveCfg = Release|Win32
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Release|Win32.Build.0 = Release|Win32
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Release|x64.ActiveCfg = Release|x64
{2162937B-0DBD-4450-B45F-DF578D8E7508}.Release|x64.Build.0 = Release|x64
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Debug|Win32.ActiveCfg = Debug|Win32
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Debug|Win32.Build.0 = Debug|Win32
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Debug|x64.ActiveCfg = Debug|x64
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Debug|x64.Build.0 = Debug|x64
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Release|Win32.ActiveCfg = Release|Win32
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Release|Win32.Build.0 = Release|Win32
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Release|x64.ActiveCfg = Release|x64
{7FDD85BB-CC86-442B-A425-989B5B296ED5}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BE3F09BB-91A9-474C-AAD9-4B4D43DCE89E}
EndGlobalSection
EndGlobal

283
Mkfiles/vs/yasm.vcxproj Normal file
View file

@ -0,0 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{34EB1BEB-C2D6-4A52-82B7-7ACD714A30D5}</ProjectGuid>
<RootNamespace>yasm</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)yasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)yasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)yasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)yasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\frontends\yasm\yasm-options.c" />
<ClCompile Include="..\..\frontends\yasm\yasm.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\yasm\yasm-options.h" />
<ClInclude Include="..\..\frontends\yasm\yasm-plugin.h" />
<ClInclude Include="..\..\libyasm.h" />
<ClInclude Include="..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\util.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="genstring\genstring.vcxproj">
<Project>{021ceb0a-f721-4f59-b349-9ceeaf244459}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="libyasm\libyasm.vcxproj">
<Project>{29fe7874-1256-4ad6-b889-68e399dc9608}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="modules\modules.vcxproj">
<Project>{d715a3d4-efaa-442e-ad8b-5b4ff64e1dd6}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{51f0d88e-1373-4bf8-a72e-c79706d37f8b}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{db67b411-6f59-462c-9c20-75024c6b3912}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\frontends\yasm\yasm-options.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\frontends\yasm\yasm.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\yasm\yasm-options.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\libyasm\compat-queue.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\libyasm.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\libyasm\bitvect.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\util.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\frontends\yasm\yasm-plugin.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>

278
Mkfiles/vs/ytasm.vcxproj Normal file
View file

@ -0,0 +1,278 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{2162937B-0DBD-4450-B45F-DF578D8E7508}</ProjectGuid>
<RootNamespace>ytasm</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
<Import Project="crt_secure_no_deprecate.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)ytasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)ytasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;VC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)ytasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
<TypeLibraryName>$(Platform)\$(Configuration)/yasm.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<AdditionalIncludeDirectories>.;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;HAVE_CONFIG_H;VC;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<PrecompiledHeaderOutputFile>
</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ObjectFileName>$(IntDir)</ObjectFileName>
<ProgramDataBaseFileName>$(IntDir)</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OutputFile>$(OutDir)ytasm.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\frontends\tasm\tasm-options.c" />
<ClCompile Include="..\..\frontends\tasm\tasm.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\tasm\tasm-options.h" />
<ClInclude Include="..\..\libyasm.h" />
<ClInclude Include="..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\libyasm\compat-queue.h" />
<ClInclude Include="..\..\util.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="libyasm\libyasm.vcxproj">
<Project>{29fe7874-1256-4ad6-b889-68e399dc9608}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="modules\modules.vcxproj">
<Project>{d715a3d4-efaa-442e-ad8b-5b4ff64e1dd6}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

13
README
View file

@ -0,0 +1,13 @@
The Yasm Modular Assembler Project
==================================
Yasm is a complete rewrite of the NASM assembler under the “new” BSD License
(some portions are under other licenses, see COPYING for details).
Yasm currently supports the x86 and AMD64 instruction sets, accepts NASM and
GAS assembler syntaxes, outputs binary, ELF32, ELF64, 32 and 64-bit Mach-O,
RDOFF2, COFF, Win32, and Win64 object formats, and generates source debugging
information in STABS, DWARF 2, and CodeView 8 formats.
Yasm can be easily integrated into Visual Studio 2005/2008 and 2010 for
assembly of NASM or GAS syntax code into Win32 or Win64 object files.

27
SECURITY.md Normal file
View file

@ -0,0 +1,27 @@
Yasm Security policy
====================
A security bug is one that compromises the security of a system by either
making it unavailable, compromising the integrity of the data or by providing
unauthorized access to resources on the system through untrusted inputs. In
the context of yasm, it is expected that all inputs are trusted, since it is
developer code. It is the responsibility of the developer to either verify the
authenticity of the code they're building or to build untrusted code in a
sandbox to protect the system from any ill effects. This responsibility also
extends to the libyasm library. While the library aims to be robust and will
fix bugs arising from bogus inputs, it is the responsibility of the application
to ensure that either the environment under which the call is made is isolated
or that the input is sanitized.
As such, all bugs will be deemed to have no security consequence with the
exception of bugs where yasm generates code that invoke [undefined behaviour in
a
system](https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_ReflectionsonTrustingTrust.pdf)
from valid, safe and trusted assembly code.
Reporting security bugs
-----------------------
To report security issues privately, you may reach out to one of the members of
the [Yasm Team](https://github.com/yasm/yasm/wiki/Yasmteam). Most issues
should just go into GitHub issues as regular bugs.

38
YASM-VERSION-GEN.bat Normal file
View file

@ -0,0 +1,38 @@
@echo off
if exist version goto haveversion
set errorlevel=0
set _my_=
for /f "usebackq tokens=1*" %%f in (`reg query HKCU\Software\TortoiseGit /v MSysGit`) do (set _my_=%%f %%g)
if %errorlevel% neq 0 goto notfound
if "%_my_%" == "" goto notfound
rem Using the shell script version (calling Git) ...
set _gitbin_=%_my_:*REG_SZ=%
for /f "tokens=* delims= " %%a in ("%_gitbin_%") do set _gitbin_=%%a
set OLDPATH=%PATH%
set PATH=%_gitbin_%;%PATH%
"%_gitbin_%\sh" YASM-VERSION-GEN.sh "%_gitbin_%"
set PATH=%OLDPATH%
exit /b
:notfound
rem Could not find Git ...
set _ver_=
for /f "usebackq tokens=2 delims==" %%a in (`%SystemRoot%\system32\find "DEF_VER=" ^<YASM-VERSION-GEN.sh`) do (set _ver_=%%a)
set _ver_=%_ver_:~1%
goto output
:haveversion
set /p _ver_=<version
goto output
:output
set /p _oldver_=<YASM-VERSION-FILE
set _oldver_=%_oldver_:~,-1%
if "%_ver_%" == "%_oldver_%" exit /b
echo %_ver_%
echo %_ver_% > YASM-VERSION-FILE
echo #define PACKAGE_STRING "yasm %_ver_%" > YASM-VERSION.h
echo #define PACKAGE_VERSION "%_ver_%" >> YASM-VERSION.h

42
YASM-VERSION-GEN.sh Executable file
View file

@ -0,0 +1,42 @@
#!/bin/sh
YVF=YASM-VERSION-FILE
DEF_VER=v1.3.0
LF='
'
# First see if there is a version file (included in release tarballs),
# then try git-describe, then default.
if test -f version
then
VN=$(cat version) || VN="$DEF_VER"
elif test -d .git -o -f .git &&
VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null) &&
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)
git update-index -q --refresh
test -z "$(git diff-index --name-only HEAD --)" ||
VN="$VN-dirty" ;;
esac
then
VN=$(echo "$VN" | sed -e 's/-/./g');
else
VN="$DEF_VER"
fi
VN=$(expr "$VN" : v*'\(.*\)')
if test -r $YVF
then
VC=$(cat $YVF)
else
VC=unset
fi
test "$VN" = "$VC" || {
echo >&2 "$VN"
echo "$VN" >$YVF
echo "#define PACKAGE_STRING \"yasm $VN\"" > YASM-VERSION.h
echo "#define PACKAGE_VERSION \"$VN\"" >> YASM-VERSION.h
}

View file

@ -1,5 +1,4 @@
#!/bin/sh
# $Id$
# Run this to set up the build system: configure, makefiles, etc.
# (based on the version in enlightenment's cvs)
@ -74,7 +73,8 @@ if test ! -d "config"; then
mkdir config
fi
rm -f stamp-h.in
rm -rf autom4te.cache
rm -f configure config.h config.status config.log stamp-h.in
#echo " gettextize -f --no-changelog"
#echo "N" | gettextize -f --no-changelog || exit 1
echo " aclocal $ACLOCAL_FLAGS"

1
cmake/CMakeLists.txt Normal file
View file

@ -0,0 +1 @@
ADD_SUBDIRECTORY(modules)

View file

@ -0,0 +1,2 @@
FILE(GLOB cmakeFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.cmake")

View file

@ -0,0 +1,4 @@
int main()
{
return 0;
}

View file

@ -0,0 +1,78 @@
# Redistribution and use is allowed according to the terms of the BSD license.
#
# Copyright (c) 2011 Peter Johnson
macro (VERSION_GEN _version _version_file _default_version)
set (_vn "v${_default_version}")
# First see if there is a version file (included in release tarballs),
# then try git-describe, then default.
if (EXISTS "${CMAKE_SOURCE_DIR}/version")
file (STRINGS "${CMAKE_SOURCE_DIR}/version" _version_strs LIMIT_COUNT 1)
list (GET _version_strs 0 _version_strs0)
if (NOT (${_version_strs0} STREQUAL ""))
set (_vn "v${_version_strs0}")
endif (NOT (${_version_strs0} STREQUAL ""))
elseif (EXISTS "${CMAKE_SOURCE_DIR}/.git")
execute_process (COMMAND git describe --match "v[0-9]*" --abbrev=4 HEAD
RESULT_VARIABLE _git_result
OUTPUT_VARIABLE _git_vn
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (_git_result EQUAL 0)
# Special handling until we get a more recent tag on the master
# branch
if (_git_vn MATCHES "^v0[.]1[.]0")
execute_process (COMMAND git merge-base v${_default_version} HEAD
OUTPUT_VARIABLE _merge_base
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
#message (STATUS "Merge base: ${_merge_base}")
execute_process (COMMAND git rev-list ${_merge_base}..HEAD
OUTPUT_VARIABLE _rev_list
ERROR_QUIET)
string (REGEX MATCHALL "[^\n]*\n" _rev_list_lines "${_rev_list}")
#message (STATUS "Rev list: ${_rev_list_lines}")
list (LENGTH _rev_list_lines _vn1)
execute_process (COMMAND git rev-list --max-count=1 --abbrev-commit --abbrev=4 HEAD
OUTPUT_VARIABLE _vn2
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
set (_git_vn "v${_default_version}-${_vn1}-g${_vn2}")
endif (_git_vn MATCHES "^v0[.]1[.]0")
# Append -dirty if there are local changes
execute_process (COMMAND git update-index -q --refresh)
execute_process (COMMAND git diff-index --name-only HEAD --
OUTPUT_VARIABLE _git_vn_dirty)
if (_git_vn_dirty)
set (_git_vn "${_git_vn}-dirty")
endif (_git_vn_dirty)
# Substitute . for - in the result
string (REPLACE "-" "." _vn "${_git_vn}")
endif (_git_result EQUAL 0)
endif (EXISTS "${CMAKE_SOURCE_DIR}/version")
# Strip leading "v" from version
#message (STATUS "_vn: ${_vn}")
string (REGEX REPLACE "^v*(.+)" "\\1" _vn "${_vn}")
# Update version file if required
if (EXISTS ${_version_file})
file (STRINGS ${_version_file} _version_strs LIMIT_COUNT 1)
list (GET _version_strs 0 _vc)
else (EXISTS ${_version_file})
set (_vc "unset")
endif (EXISTS ${_version_file})
if (NOT ("${_vn}" STREQUAL "${_vc}"))
file (WRITE ${_version_file} "${_vn}")
endif (NOT ("${_vn}" STREQUAL "${_vc}"))
# Set output version variable
set (${_version} ${_vn})
endmacro (VERSION_GEN)

View file

@ -0,0 +1,83 @@
# Portions based on kdelibs KDE4Macros.cmake:
#
# Copyright (c) 2006, 2007, Alexander Neundorf, <neundorf@kde.org>
# Copyright (c) 2006, 2007, Laurent Montel, <montel@kde.org>
# Copyright (c) 2007 Matthias Kretz <kretz@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
#
# Changes for Yasm Copyright (c) 2007 Peter Johnson
# add a unit test, which is executed when running make test
# it will be built with RPATH pointing to the build dir
# The targets are always created, but only built for the "all"
# target if the option YASM_BUILD_TESTS is enabled. Otherwise the rules for
# the target are created but not built by default. You can build them by
# manually building the target.
# The name of the target can be specified using TESTNAME <testname>, if it is
# not given the macro will default to the <name>
macro (YASM_ADD_UNIT_TEST _test_NAME)
set(_srcList ${ARGN})
set(_targetName ${_test_NAME})
if( ${ARGV1} STREQUAL "TESTNAME" )
set(_targetName ${ARGV2})
LIST(REMOVE_AT _srcList 0 1)
endif( ${ARGV1} STREQUAL "TESTNAME" )
yasm_add_test_executable( ${_test_NAME} ${_srcList} )
add_test( ${_targetName} ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME} )
endmacro (YASM_ADD_UNIT_TEST)
# add an test executable
# it will be built with RPATH pointing to the build dir
# The targets are always created, but only built for the "all"
# target if the option YASM_BUILD_TESTS is enabled. Otherwise the rules for
# the target are created but not built by default. You can build them by
# manually building the target.
macro (YASM_ADD_TEST_EXECUTABLE _target_NAME)
set(_add_executable_param)
if (NOT YASM_BUILD_TESTS)
set(_add_executable_param EXCLUDE_FROM_ALL)
endif (NOT YASM_BUILD_TESTS)
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set(_SRCS ${ARGN})
add_executable(${_target_NAME} ${_add_executable_param} ${_SRCS})
set_target_properties(${_target_NAME} PROPERTIES
SKIP_BUILD_RPATH FALSE
BUILD_WITH_INSTALL_RPATH FALSE)
endmacro (YASM_ADD_TEST_EXECUTABLE)
macro (YASM_ADD_MODULE _module_NAME)
list(APPEND YASM_MODULES_SRC ${ARGN})
list(APPEND YASM_MODULES ${_module_NAME})
endmacro (YASM_ADD_MODULE)
macro (YASM_GENPERF _in_NAME _out_NAME)
add_custom_command(
OUTPUT ${_out_NAME}
COMMAND yasm::genperf ${_in_NAME} ${_out_NAME}
MAIN_DEPENDENCY ${_in_NAME}
)
endmacro (YASM_GENPERF)
macro (YASM_RE2C _in_NAME _out_NAME)
add_custom_command(
OUTPUT ${_out_NAME}
COMMAND yasm::re2c ${ARGN} -o ${_out_NAME} ${_in_NAME}
MAIN_DEPENDENCY ${_in_NAME}
)
endmacro (YASM_RE2C)
macro (YASM_GENMACRO _in_NAME _out_NAME _var_NAME)
add_custom_command(
OUTPUT ${_out_NAME}
COMMAND yasm::genmacro ${_out_NAME} ${_var_NAME} ${_in_NAME}
MAIN_DEPENDENCY ${_in_NAME}
)
endmacro (YASM_GENMACRO)

53
config.h.cmake Normal file
View file

@ -0,0 +1,53 @@
/* config.h. Generated by cmake from config.h.cmake */
#define CMAKE_BUILD 1
/* Define if shared libs are being built */
#cmakedefine BUILD_SHARED_LIBS 1
/* Define if messsage translations are enabled */
#cmakedefine ENABLE_NLS 1
/* Define if you have the `abort' function. */
#cmakedefine HAVE_ABORT 1
/* */
#undef HAVE_GETTEXT
/* Define to 1 if you have the <libgen.h> header file. */
#cmakedefine HAVE_LIBGEN_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H 1
/* Define to 1 if you have the <direct.h> header file. */
#cmakedefine HAVE_DIRECT_H 1
/* Define to 1 if you have the `getcwd' function. */
#cmakedefine HAVE_GETCWD 1
/* Define to 1 if you have the `_stricmp' function. */
#cmakedefine HAVE__STRICMP 1
/* Define to 1 if you have the `toascii' function. */
#cmakedefine HAVE_TOASCII 1
/* Name of package */
#define PACKAGE "yasm"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bug-yasm@tortall.net"
/* Define to the full name of this package. */
#define PACKAGE_NAME "yasm"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the version of this package. */
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
#define VERSION PACKAGE_VERSION
/* Command name to run C preprocessor */
#define CPP_PROG "@CPP_PROG@"

5
config/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
mkinstalldirs
depcomp
compile
missing
install-sh

1037
config/config.guess vendored

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2006 Free Software Foundation, Inc.
# Copyright 1996-2013 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
@ -25,7 +25,7 @@
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# All known linkers require a '.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
@ -47,7 +47,7 @@ for cc_temp in $CC""; do
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
@ -57,14 +57,7 @@ else
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | pw32* | os2*)
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
@ -72,24 +65,37 @@ else
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux*)
linux* | k*bsd*-gnu | kopensolaris*-gnu)
case $cc_basename in
icc* | ecc*)
ecc*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
nagfor*)
wl='-Wl,-Wl,,'
;;
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
xl* | bgxl* | bgf* | mpixl*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ F* | *Sun*Fortran*)
wl=
;;
*Sun\ C*)
wl='-Wl,'
;;
@ -97,22 +103,36 @@ else
;;
esac
;;
newsos6)
;;
*nto* | *qnx*)
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
sco3.2v5*)
rdos*)
;;
solaris*)
wl='-Wl,'
case $cc_basename in
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
wl='-Qoption ld '
;;
*)
wl='-Wl,'
;;
esac
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
@ -121,7 +141,7 @@ else
esac
fi
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
@ -129,7 +149,7 @@ hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
@ -155,22 +175,21 @@ if test "$with_gnu_ld" = yes; then
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix3* | aix4* | aix5*)
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
case "$host_cpu" in
powerpc)
;;
m68k)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
esac
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
@ -179,7 +198,7 @@ if test "$with_gnu_ld" = yes; then
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
@ -189,11 +208,13 @@ if test "$with_gnu_ld" = yes; then
ld_shlibs=no
fi
;;
interix3*)
haiku*)
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
linux*)
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
@ -251,7 +272,7 @@ else
hardcode_direct=unsupported
fi
;;
aix4* | aix5*)
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
@ -261,7 +282,7 @@ else
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
@ -280,7 +301,7 @@ else
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
hardcode_direct=yes
:
else
# We have old collect2
hardcode_direct=unsupported
@ -316,14 +337,18 @@ else
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
case "$host_cpu" in
powerpc)
;;
m68k)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
esac
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
@ -333,24 +358,15 @@ else
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
ld_shlibs=no
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
@ -359,7 +375,7 @@ else
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | kfreebsd*-gnu | dragonfly*)
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
@ -411,19 +427,25 @@ else
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
*nto* | *qnx*)
;;
openbsd*)
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
ld_shlibs=no
fi
;;
os2*)
@ -471,7 +493,7 @@ else
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
@ -487,34 +509,58 @@ else
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix4* | aix5*)
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
case "$host_cpu" in
powerpc*)
library_names_spec='$libname$shrext' ;;
m68k)
library_names_spec='$libname.a' ;;
esac
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
;;
freebsd1*)
;;
kfreebsd*-gnu)
library_names_spec='$libname$shrext'
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
haiku*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
@ -528,10 +574,13 @@ case "$host_os" in
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix3*)
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
@ -548,41 +597,62 @@ case "$host_os" in
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux*)
linux* | k*bsd*-gnu | kopensolaris*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
*nto* | *qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
tpf*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
@ -596,6 +666,12 @@ libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"

482
config/config.sub vendored
View file

@ -1,9 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
timestamp='2003-07-04'
timestamp='2012-04-18'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@ -20,23 +21,25 @@ timestamp='2003-07-04'
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
# diff and a properly formatted GNU ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
@ -70,7 +73,8 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@ -83,11 +87,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit 0 ;;
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit 0 ;;
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit 0 ;;
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
@ -99,7 +103,7 @@ while test $# -gt 0 ; do
*local*)
# First pass through any local machine types.
echo $1
exit 0;;
exit ;;
* )
break ;;
@ -118,10 +122,18 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
android-linux)
os=-linux-android
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@ -144,10 +156,13 @@ case $os in
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-apple | -axis)
-apple | -axis | -knuth | -cray | -microblaze)
os=
basic_machine=$1
;;
-bluegene*)
os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
basic_machine=$1
@ -162,13 +177,17 @@ case $os in
os=-chorusos
basic_machine=$1
;;
-chorusrdb)
os=-chorusrdb
-chorusrdb)
os=-chorusrdb
basic_machine=$1
;;
;;
-hiux*)
os=-hiuxwe2
;;
-sco6)
os=-sco5v6
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5)
os=-sco3.2v5
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@ -185,6 +204,10 @@ case $os in
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5v6*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@ -202,6 +225,12 @@ case $os in
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-lynx*178)
os=-lynxos178
;;
-lynx*5)
os=-lynxos5
;;
-lynx*)
os=-lynxos
;;
@ -226,55 +255,103 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
| aarch64 | aarch64_be \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
| be32 | be64 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fr30 | frv \
| epiphany \
| fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k \
| m32r | m68000 | m68k | m88k | mcore \
| ip2k | iq2000 \
| le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
| mips64vr | mips64vrel \
| mips64octeon | mips64octeonel \
| mips64orion | mips64orionel \
| mips64r5900 | mips64r5900el \
| mips64vr | mips64vrel \
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
| mipsisa64r2 | mipsisa64r2el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| moxie \
| mt \
| msp430 \
| nds32 | nds32le | nds32be \
| nios | nios2 \
| ns16k | ns32k \
| openrisc | or32 \
| open8 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
| strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu \
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
| we32k \
| x86 | xscale | xstormy16 | xtensa \
| z8k)
| x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
c54x)
basic_machine=tic54x-unknown
;;
c55x)
basic_machine=tic55x-unknown
;;
c6x)
basic_machine=tic6x-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
;;
ms1)
basic_machine=mt-unknown
;;
strongarm | thumb | xscale)
basic_machine=arm-unknown
;;
xgate)
basic_machine=$basic_machine-unknown
os=-none
;;
xscaleeb)
basic_machine=armeb-unknown
;;
xscaleel)
basic_machine=armel-unknown
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
@ -290,58 +367,80 @@ case $basic_machine in
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
| aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
| bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| clipper-* | cydra-* \
| avr-* | avr32-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* \
| m32r-* \
| ip2k-* | iq2000-* \
| le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | mcore-* \
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
| mips64vr-* | mips64vrel-* \
| mips64octeon-* | mips64octeonel-* \
| mips64orion-* | mips64orionel-* \
| mips64r5900-* | mips64r5900el-* \
| mips64vr-* | mips64vrel-* \
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
| mipsisa64r2-* | mipsisa64r2el-* \
| mipsisa64sb1-* | mipsisa64sb1el-* \
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| mt-* \
| msp430-* \
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
| nds32-* | nds32le-* | nds32be-* \
| nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| open8-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
| romp-* | rs6000-* \
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
| tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \
| tron-* \
| v850-* | v850e-* | vax-* \
| ubicom32-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
| vax-* \
| we32k-* \
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
| xtensa-* \
| x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-*)
| z8k-* | z80-*)
;;
# Recognize the basic CPU types without company name, with glob match.
xtensa*)
basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
@ -359,6 +458,9 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
abacus)
basic_machine=abacus-unknown
;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
@ -376,6 +478,9 @@ case $basic_machine in
amd64)
basic_machine=x86_64-pc
;;
amd64-*)
basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
amdahl)
basic_machine=580-amdahl
os=-sysv
@ -399,6 +504,10 @@ case $basic_machine in
basic_machine=m68k-apollo
os=-bsd
;;
aros)
basic_machine=i386-pc
os=-aros
;;
aux)
basic_machine=m68k-apple
os=-aux
@ -407,10 +516,35 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
blackfin)
basic_machine=bfin-unknown
os=-linux
;;
blackfin-*)
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
bluegene*)
basic_machine=powerpc-ibm
os=-cnk
;;
c54x-*)
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c55x-*)
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c6x-*)
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c90)
basic_machine=c90-cray
os=-unicos
;;
cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
convex-c1)
basic_machine=c1-convex
os=-bsd
@ -435,12 +569,27 @@ case $basic_machine in
basic_machine=j90-cray
os=-unicos
;;
craynv)
basic_machine=craynv-cray
os=-unicosmp
;;
cr16 | cr16-*)
basic_machine=cr16-unknown
os=-elf
;;
crds | unos)
basic_machine=m68k-crds
;;
crisv32 | crisv32-* | etraxfs*)
basic_machine=crisv32-axis
;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
crx)
basic_machine=crx-unknown
os=-elf
;;
da30 | da30-*)
basic_machine=m68k-da30
;;
@ -463,6 +612,14 @@ case $basic_machine in
basic_machine=m88k-motorola
os=-sysv3
;;
dicos)
basic_machine=i686-pc
os=-dicos
;;
djgpp)
basic_machine=i586-pc
os=-msdosdjgpp
;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
@ -574,7 +731,6 @@ case $basic_machine in
i370-ibm* | ibm*)
basic_machine=i370-ibm
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
@ -613,6 +769,14 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
;;
m68knommu-*)
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
m88k-omron*)
basic_machine=m88k-omron
;;
@ -624,10 +788,17 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
microblaze)
basic_machine=microblaze-xilinx
;;
mingw32)
basic_machine=i386-pc
os=-mingw32
;;
mingw32ce)
basic_machine=arm-unknown
os=-mingw32ce
;;
miniframe)
basic_machine=m68000-convergent
;;
@ -641,10 +812,6 @@ case $basic_machine in
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
mmix*)
basic_machine=mmix-knuth
os=-mmixware
;;
monitor)
basic_machine=m68k-rom68k
os=-coff
@ -657,10 +824,21 @@ case $basic_machine in
basic_machine=i386-pc
os=-msdos
;;
ms1-*)
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
msys)
basic_machine=i386-pc
os=-msys
;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
nacl)
basic_machine=le32-unknown
os=-nacl
;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@ -725,9 +903,11 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
nv1)
basic_machine=nv1-cray
os=-unicosmp
neo-tandem)
basic_machine=neo-tandem
;;
nse-tandem)
basic_machine=nse-tandem
;;
nsr-tandem)
basic_machine=nsr-tandem
@ -736,9 +916,12 @@ case $basic_machine in
basic_machine=hppa1.1-oki
os=-proelf
;;
or32 | or32-*)
openrisc | openrisc-*)
basic_machine=or32-unknown
os=-coff
;;
os400)
basic_machine=powerpc-ibm
os=-os400
;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
@ -756,6 +939,14 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
parisc)
basic_machine=hppa-unknown
os=-linux
;;
parisc-*)
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
pbd)
basic_machine=sparc-tti
;;
@ -765,6 +956,12 @@ case $basic_machine in
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
pc98)
basic_machine=i386-pc
;;
pc98-*)
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
@ -794,9 +991,10 @@ case $basic_machine in
;;
power) basic_machine=power-ibm
;;
ppc) basic_machine=powerpc-unknown
ppc | ppcbe) basic_machine=powerpc-unknown
;;
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
@ -821,6 +1019,10 @@ case $basic_machine in
basic_machine=i586-unknown
os=-pw32
;;
rdos)
basic_machine=i386-pc
os=-rdos
;;
rom68k)
basic_machine=m68k-rom68k
os=-coff
@ -847,6 +1049,10 @@ case $basic_machine in
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
sde)
basic_machine=mipsisa32-sde
os=-elf
;;
sei)
basic_machine=mips-sei
os=-seiux
@ -858,6 +1064,9 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
sh5el)
basic_machine=sh5le-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
@ -879,6 +1088,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
strongarm-* | thumb-*)
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
sun2)
basic_machine=m68000-sun
;;
@ -935,17 +1147,9 @@ case $basic_machine in
basic_machine=t90-cray
os=-unicos
;;
tic54x | c54x*)
basic_machine=tic54x-unknown
os=-coff
;;
tic55x | c55x*)
basic_machine=tic55x-unknown
os=-coff
;;
tic6x | c6x*)
basic_machine=tic6x-unknown
os=-coff
tile*)
basic_machine=$basic_machine-unknown
os=-linux-gnu
;;
tx39)
basic_machine=mipstx39-unknown
@ -960,6 +1164,10 @@ case $basic_machine in
tower | tower-32)
basic_machine=m68k-ncr
;;
tpf)
basic_machine=s390x-ibm
os=-tpf
;;
udi29k)
basic_machine=a29k-amd
os=-udi
@ -1003,9 +1211,16 @@ case $basic_machine in
basic_machine=hppa1.1-winbond
os=-proelf
;;
xbox)
basic_machine=i686-pc
os=-mingw32
;;
xps | xps100)
basic_machine=xps100-honeywell
;;
xscale-* | xscalee[bl]-*)
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
;;
ymp)
basic_machine=ymp-cray
os=-unicos
@ -1014,6 +1229,10 @@ case $basic_machine in
basic_machine=z8k-unknown
os=-sim
;;
z80-*-coff)
basic_machine=z80-unknown
os=-sim
;;
none)
basic_machine=none-none
os=-none
@ -1033,6 +1252,9 @@ case $basic_machine in
romp)
basic_machine=romp-ibm
;;
mmix)
basic_machine=mmix-knuth
;;
rs6000)
basic_machine=rs6000-ibm
;;
@ -1049,13 +1271,10 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
sparc | sparcv9 | sparcv9b)
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
basic_machine=sparc-sun
;;
cydra)
@ -1099,9 +1318,12 @@ esac
if [ x"$os" != x"" ]
then
case $os in
# First match some system type aliases
# that might get confused with valid system types.
# First match some system type aliases
# that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
-auroraux)
os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
@ -1122,25 +1344,31 @@ case $os in
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* \
| -aos* | -aros* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
| -openbsd* | -solidbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@ -1158,12 +1386,15 @@ case $os in
os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
os=`echo $os | sed -e 's|mac|macos|'`
;;
-linux-dietlibc)
os=-linux-dietlibc
;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
@ -1176,6 +1407,9 @@ case $os in
-opened*)
os=-openedition
;;
-os400*)
os=-os400
;;
-wince*)
os=-wince
;;
@ -1197,6 +1431,9 @@ case $os in
-atheos*)
os=-atheos
;;
-syllable*)
os=-syllable
;;
-386bsd)
os=-bsd
;;
@ -1219,6 +1456,9 @@ case $os in
-sinix*)
os=-sysv4
;;
-tpf*)
os=-tpf
;;
-triton*)
os=-sysv3
;;
@ -1255,6 +1495,14 @@ case $os in
-kaos*)
os=-kaos
;;
-zvmoe)
os=-zvmoe
;;
-dicos*)
os=-dicos
;;
-nacl*)
;;
-none)
;;
*)
@ -1277,6 +1525,12 @@ else
# system, and we'll never get to this point.
case $basic_machine in
score-*)
os=-elf
;;
spu-*)
os=-elf
;;
*-acorn)
os=-riscix1.2
;;
@ -1286,9 +1540,21 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
c4x-* | tic4x-*)
os=-coff
;;
c4x-* | tic4x-*)
os=-coff
;;
hexagon-*)
os=-elf
;;
tic54x-*)
os=-coff
;;
tic55x-*)
os=-coff
;;
tic6x-*)
os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
@ -1307,13 +1573,13 @@ case $basic_machine in
;;
m68000-sun)
os=-sunos3
# This also exists in the configure program, but was not the
# default.
# os=-sunos4
;;
m68*-cisco)
os=-aout
;;
mep-*)
os=-elf
;;
mips*-cisco)
os=-elf
;;
@ -1332,9 +1598,15 @@ case $basic_machine in
*-be)
os=-beos
;;
*-haiku)
os=-haiku
;;
*-ibm)
os=-aix
;;
*-knuth)
os=-mmixware
;;
*-wec)
os=-proelf
;;
@ -1437,7 +1709,7 @@ case $basic_machine in
-sunos*)
vendor=sun
;;
-aix*)
-cnk*|-aix*)
vendor=ibm
;;
-beos*)
@ -1467,9 +1739,15 @@ case $basic_machine in
-mvs* | -opened*)
vendor=ibm
;;
-os400*)
vendor=ibm
;;
-ptx*)
vendor=sequent
;;
-tpf*)
vendor=ibm
;;
-vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
@ -1494,7 +1772,7 @@ case $basic_machine in
esac
echo $basic_machine$os
exit 0
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)

File diff suppressed because it is too large Load diff

161
config/mkinstalldirs Executable file
View file

@ -0,0 +1,161 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2006-05-11.19
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
IFS=" "" $nl"
errstatus=0
dirmode=
usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
Create each directory DIR (with mode MODE, if specified), including all
leading file name components.
Report bugs to <bug-automake@gnu.org>."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage"
exit $?
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--version)
echo "$0 $scriptversion"
exit $?
;;
--) # stop option processing
shift
break
;;
-*) # unknown option
echo "$usage" 1>&2
exit 1
;;
*) # first non-opt arg
break
;;
esac
done
for file
do
if test -d "$file"; then
shift
else
break
fi
done
case $# in
0) exit 0 ;;
esac
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
# mkdir -p a/c at the same time, both will detect that a is missing,
# one will create a, then the other will try to create a and die with
# a "File exists" error. This is a problem when calling mkinstalldirs
# from a parallel make. We use --version in the probe to restrict
# ourselves to GNU mkdir, which is thread-safe.
case $dirmode in
'')
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
test -d ./-p && rmdir ./-p
test -d ./--version && rmdir ./--version
fi
;;
*)
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
test ! -d ./--version; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
else
# Clean up after NextStep and OpenStep mkdir.
for d in ./-m ./-p ./--version "./$dirmode";
do
test -d $d && rmdir $d
done
fi
;;
esac
for file
do
case $file in
/*) pathcomp=/ ;;
*) pathcomp= ;;
esac
oIFS=$IFS
IFS=/
set fnord $file
shift
IFS=$oIFS
for d
do
test "x$d" = x && continue
pathcomp=$pathcomp$d
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
fi
pathcomp=$pathcomp/
done
done
exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:

Some files were not shown because too many files have changed in this diff Show more