1. Install the compilation tool
Install msvc152 path C:/msvc;
To install masm611, you can specify E:/masm611;
2. Command Line Compilation
Related File Configuration
Modify setupen2.bat
As follows:
: Path_done
Set path =%__ msvcdir %/bin; % PATH %; % _ winceroot %/SDK/bin/i386; E:/masm611/bin
Set msdevdir =%__ msvcdir %
Set lib =%__ msvcdir %/lib
Set include =%__ msvcdir %/include
Goto done
Put bootarg. h. copy the file to C:/wince600/platform/cepc/src/bootloader/DOS/loadcepc in C:/wince600/platform/common/src/soc/x86_ms_v1/Inc.
Change the # include <.../../INC/bootarg. h> In ethmain. C and video. C to # include <bootarg. h>.
Related commands
> Cd C:/wince600/platform/cepc/src/bootloader/DOS/loadcepc
> SET _ winceroot = C:/wince600
> Setupenv
Result Display
* ** 16-bit Dev mode-type exit to return to normal ***
> Path
Path = C:/msvc/bin; E:/mwos/DOS/bin; C:/Windows/system32; C:/windows; C:/Windows/system32/WBEM; c:/program files/Microsoft SQL Server/80/tools/binn; C:/program files/Microsoft SQL Server/90/tools/binn/; E:/progra ~ 1/Borland/DELPHI6/bin; E:/progra ~ 1/Borland/DELPHI6/projects/BPL; C:/Program
Files/stormii/codec; C:/program files/Storm
II; C:/wince600/SDK/bin/i386; E:/masm611/bin
Here, Path = C:/msvc/bin; E:/masm611/bin; C:/wince600/SDK/bin/i386 must exist; the three paths are the key to compiling loadcepc.
* ** 16-bit Dev mode-type exit to return to normal ***
> Nmake/F loadcepc. Mak
Display result
Microsoft (r) program maintenance utility version 1.40
Copyright (c) Microsoft Corp 1988-93. All rights reserved.
CL/I./nologo/GS/G2/W4/z7/Ox/D "ndebug"/D "_ dos"/D "ceddk_used
Dkmacro "/FC/fr/I.../../INC/C main. c
Main. c
Main. C (1): Warning c4001: Nonstandard extension 'single line comment' was
Definitions file [NUL. Def]:;
BSCMAKE @ C:/docume ~ 1/admini ~ 1/locals ~ 1/temp/nm002092.
Microsoft browser database maintenance utility version 2.51
Copyright (c) Microsoft Corp 1990-1993. All rights reserved.
3. VC ++ 152 Compilation
Modify loadcepc. Mak. This is a project file, which is executed by msvc1.52. Add the environment variable.
#
#
# Microsoft Visual C ++ generated build script-do not modify
Path = c: \ msvc \ bin; E: \ masm611 \ bin
Proj = loadcepc
DEBUG = 0
Progtype = 6
Caller =
ARGs =
DLLs =
D_rcdefines =-d_debug
R_rcdefines =-dndebug
Origin = msvc
As shown in red in the code.
Run msvc1.52, select the loadcepc. Mak file from project> open, and click OK.
Click project-> build loadcepc.exe. a new loadcepc.exe is added to the loadcepcdirectory.
Compilation tools and method Resources
Http://download.csdn.net/detail/blaider/5723491