x86(80x86)CPUにおける各種「呼び出し規約」, "Calling Convention(s)" が実際にどのようなアセンブラコードになるのか延々と載せていくページ
各種コンパイラのバージョンについて。
Visual C++ 2008 Express Edition on Windows XP SP3
> cl Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. > link Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved.
Borland C++ Compiler 5.5.1 on Windows XP SP3
> bcc32 Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland (...) > ilink32 Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland (...)
OpenWatcom Compiler(16bit)
> wcl -v Open Watcom C/C++16 Compile and Link Utility Version 1.8 Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. > wcc -v Open Watcom C16 Optimizing Compiler Version 1.8 Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. Error! E1138: Filename required on command line
OpenWatcom Compiler(32bit)
> wcl386 -v Open Watcom C/C++32 Compile and Link Utility Version 1.8 Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. > wcc386 -v Open Watcom C32 Optimizing Compiler Version 1.8 Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. Error! E1138: Filename required on command line
OpenWatcom 環境変数(owsetenv.bat)
@echo off echo Open Watcom Build Environment set PATH=C:\WATCOM\BINNT;%PATH% set PATH=C:\WATCOM\BINW;%PATH% set INCLUDE=C:\WATCOM\H;%INCLUDE% set INCLUDE=C:\WATCOM\H\NT;%INCLUDE% set WATCOM=C:\WATCOM set EDPATH=C:\WATCOM\EDDAT
※一部16bitでのコンパイル時にのみ
set INCLUDE=%WATCOM%\h;%WATCOM%\h\win
によりヘッダファイルの読み込み位置を調整。
MinGWとgcc
MinGW-5.1.6 gcc.exe (GCC) 3.4.5 (mingw-vista special r3) MSYS 1.0
Linux(CentOS5.2)上のgcc, binutils:
gcc-4.1.2-42.el5 libgcc-4.1.2-42.el5 binutils-2.17.50.0.6-6.el5
書籍:
Webページ: