CompleteTranslationofUnsafeNativeCodetoSafeBytecode BrianAlliet RochesterInstituteofTechnology ******@ AdamMegacz UniversityofCalifornia,Berkeley ******@ ’soriginal TE X,piledandexecutedentirelywithin aJavaVirtualMachinewithouttheuseofnativecode. Abstract Existingtechniquesforusingcodewritteninanun- safelanguagewithinasafevirtualmachinegener- allyinvolvetransformationsfromonesourcecodelan- guage(suchasC,Pascal,orFortran)toanother(such asJava)piledintovirtualmachine bytecodes. Wepresentanalternativeapproachwhichtranslate pilerintosafevir- advantagesoverexistingtechniques:itislanguageag- nostic,itoffersbug-for-patibility,re- quiresnopost-translationhumanintervention,andin- troducesnobuildprocessmodi?cations. WealsopresentNestedVM,animplementationofthis technique,anddiscussitsapplicationtosixsoftware packages:LINPACK(Fortran),whichwasusedasone ofourperformancetests,TE X(Pascal),whichwasused totypesetthisdocument,libjpeg,libmspack,and FreeType(allCsource),whicharecurrentlyinproduc- tionuseaspartoftheIbexProject[?],,which pilealloftheaforementioned. Performancemeasurementsindicateabestcaseperfor- mancewithin3xofnativecodeandworstcasetypi- callywithin10x,makingitanattractivesolutionfor codewhichisnotperformance-critical. 1 Introduction UnsafelanguagessuchasCandC++havebeeninuse
complete translation of unsafe native code to safe bytecode:不安全的代码安全代码完整的翻译 来自淘豆网m.daumloan.com转载请标明出处.