/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_creating_project.htm
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_creating_project.htm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (show annotations)
Sun May 24 19:53:20 2009 UTC (10 years, 6 months ago) by dbug
File MIME type: text/html
File size: 3337 byte(s)
Added the complete source code of the OSDK.
Projects files are available for Visual Studio 6 and .net, plus a Code::Blocks setup (everything works except PictConv that relies on FreeImage - which does not build correctly on mingw)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
3 <HTML lang=fr dir=ltr>
4 <HEAD>
5 <meta name="robots" content="noindex">
6 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
7 <title>OSDK - Creating project</title>
8 <link href="documentation.css" rel="stylesheet" type="text/css">
9 </HEAD>
10
11 <BODY>
12
13 <hr>
14 <A href="documentation.htm"><img src="arrow_back.gif"></A>
15 <img src="pics/osdk_logo_small.png">
16 <hr>
17
18 <h1>Creating project</h1>
19
20
21
22 <p id=chapter>How to use it for new projects</p>
23
24 <p>The only thing you have to do, is to create a folder, put your source codes, and copy from the sample directory the three batch files:
25 </p>
26 <pre>
27 osdk_build.bat
28 osdk_execute.bat
29 osdk_showmap.bat
30 osdk_config.bat
31 </pre>
32
33 <p>We are interested by the last one. Just edit this file, and look at those lines:
34 </p>
35 <pre>
36 SET OSDKADDR=$600
37 SET OSDKNAME=demo
38 SET OSDKFILE=main display sound packer
39 SET OSDKLINK=
40 SET OSDKCOMP=
41 </pre>
42
43 <p>those parameters define how the program will be constructed:
44 </p>
45 <ul>
46 <li>the OSDKADDR variable contains the link adress. The default value is $600
47 </li>
48 <li>the OSDKNAME variable contains the name of the TAP file to generate. The default value is OSDK.
49 </li>
50 <li>the OSDKFILE variable contains the list of all files to build. In the example above, the DEMO.TAP program will be made from MAIN.C DISPLAY.S SOUND.S and PACKER.C. As you can see, the extensions are not given. It means that you cannot have two files having the same name but with a different extension.
51 </li>
52 <li>the OSDKLINK variable contains the list of parameters the linker will receive. The value <b>-B</b> will tell the linker to not automaticaly
53 happend 'header.s' and 'tail.s' thus giving you full control on how your program will fit in memory. Good for pure assembly code programs.
54 </li>
55 <li>the OSDKCOMP variable contains the list of parameters the compiler will receive.
56 If you don't fill it, it will be initialized by default to the options -O2.
57 You can try -O3 if you wish more aggresive optimizations (beta test, could produce wrong code)
58 </li>
59 </ul>
60
61 <p>The only thing you have to made, is edit this file to make it reflect your needs.
62 </p>
63
64 <p><i>See also:</i>
65 <ul>
66 <li><A href="doc_linker.htm">Linker</A></li>
67 </ul>
68 </p>
69
70
71 <p id=chapter>For Visual Studios Users</p>
72
73 <p>If like me, you are used to use a modern IDE like Visual Studios, you can configure it in order to be able to edit, compile, and test directly from the VC IDE !
74 In order to do that, you have to create a NEW PROJECT, and choose MAKEFILE.
75 In the menu "PROJECT/SETTING", choose "GENERAL" and enter the following line into the "Build command line" box:
76 </p>
77
78 <pre>
79 %OSDK%\Bin\vc_make.bat
80 </pre>
81
82 <p>this way, you will be able to compile using the "F7" key, the error messages appear into the output window of visual studios. Clean, isn't it ?
83 </p>
84
85 <p>If you wish to be able to debug the code, you can also launch Euphoric from visual studios. Instead of "GENERAL" go to "DEBUG", and in the "Executable for debug session" box, simply enter the following line:
86 </p>
87
88 <pre>
89 OSDK_EXECUTE.BAT
90 </pre>
91
92
93
94 <hr>
95 <A href="documentation.htm"><img src="arrow_back.gif"></A>
96 <img src="pics/osdk_logo_small.png">
97 <hr>
98
99 </BODY>
100 </HTML>
101
102

  ViewVC Help
Powered by ViewVC 1.1.26