Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Native compile vs. P-compile

[es] :: Visual Basic 6 :: Native compile vs. P-compile

[ Pregleda: 4195 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Wlada

Član broj: 14344
Poruke: 171
*.dialup.sezampro.yu.



Profil

icon Native compile vs. P-compile30.05.2004. u 22:08 - pre 213 meseci
Moze li mi neko objasniti razliku izmedju P-compile i native compile. Meni nista nije jasno; fajl kompajliran native(Small Compile) zauzima 126 Kb, a P-compile 65Kb. Zasto je onda ono small?!
 
Odgovor na temu

mladenovicz
Zeljko Mladenovic
Xoran Technologies, Inc., Ann Arbor, MI,
USA / Software Engineer
Ann Arbor, MI, USA

Član broj: 6598
Poruke: 2065
62.108.109.*

Jabber: mladenovicz@elitesecurity.org
ICQ: 95144142
Sajt: yubc.net/~mz


Profil

icon Re: Native compile vs. P-compile31.05.2004. u 09:57 - pre 213 meseci
Citat:
MSDN:
If you have the Professional or Enterprise edition of Visual Basic, you can compile your code either in standard Visual Basic p-code format or in native code format. Native code compilation provides several options for optimizing and debugging that aren't available with p-code.

P-code, or pseudo code, is an intermediate step between the high-level instructions in your Basic program and the low-level native code your computer's processor executes. At run time, Visual Basic translates each p-code statement to native code. By compiling directly to native code format, you eliminate the intermediate p-code step.

You can debug compiled native code using standard native code debugging tools, such as the debugging environment provided by Visual C++. You can also use options available in languages such as Visual C++ for optimizing and debugging native code. For example, you can optimize code for speed or for size.

Note All projects created with Visual Basic use the services of the run-time DLL (MSVBVM60.DLL). Among the services provided by this DLL are startup and shutdown code for your application, functionality for forms and intrinsic controls, and run-time functions like Format and CLng.

Compiling a project with the Native Code option means that the code you write will be fully compiled to the native instructions of the processor chip, instead of being compiled to p-code. This will greatly speed up loops and mathematical calculations, and may somewhat speed up calls to the services provided by MSVBVM60.DLL. However, it does not eliminate the need for the DLL.

 
Odgovor na temu

Wlada

Član broj: 14344
Poruke: 171
*.rcub.bg.ac.yu



Profil

icon Re: Native compile vs. P-compile31.05.2004. u 15:45 - pre 213 meseci
Hvala.
 
Odgovor na temu

[es] :: Visual Basic 6 :: Native compile vs. P-compile

[ Pregleda: 4195 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.