PDA

View Full Version : سوال: تفاوت P-Code با native Code در چیست



click.1387
چهارشنبه 18 شهریور 1388, 14:20 عصر
سلام
تفاوت P-Code با native Code در چیست ؟؟
خیلی فوری هستش :گریه:

.:KeihanCPU:.
چهارشنبه 18 شهریور 1388, 15:44 عصر
در نوع native که قدرتمند ترین نوع برنامه نویسی می باشد (مدیریت نشده) ، برنامه شما به طور مستقیم توسط پردازنده مرکزی (CPU) اجرا می شود و می تواند بر روی نسخه های مختلف سیستم عامل ویندوز اجرا شود (این مورد شامل ویندوز CE و ویندوز mobile برای تلفن های همراه نیز می شود ).
لذا برنامه های native دسترسی مستقیم به سیستم عامل و سخت افزار دارند و این به شما قدرت و کارآیی (Performance) بسیار بالایی می دهد. اما نکته ای که باید توجه کنید این است که قدرت بالا ، به دقت ، مسئولیت پذیری و تمرین بیشتری نیاز دارد تا موارد به درستی انجام شود.

اینو هم یه نگاهی بندازید



From the fantastic book, "Pure Visual Basci"

"Compiling to p-code, or pseudo code, instructs VB to use an intermediate format for instructions that is between machine code and the syntax typed into the code window. When the app is executed, these p-code instructions are translated into machine code that can be executed on the processor. Compiling to native code eliminates this translation and thus can speed up execution of the application, especially when the code performs mathematicla and code-intensive operations. However, p-code executables are generaly smaller than those compiled in native code"

So, the short answer is - compile to NATIVE CODE - you can then select optimization settings such as "optimize for fast code", or "optimize for small code


و اینجا


http://barnamenevis.org/forum/showthread.php?t=107158&highlight=native+code