100 likes | 316 Vues
Jamie McAtamney. Programming Language Translation. Background. Similar research Jazillian pay-per-program translation company Terekhov & Verhoef’s paper on translation difficulties Lili Qiu's paper on procedural vs. object-oriented languages Erik Demaine’s paper on pointers
E N D
Jamie McAtamney Programming Language Translation
Background Similar research Jazillian pay-per-program translation company Terekhov & Verhoef’s paper on translation difficulties Lili Qiu's paper on procedural vs. object-oriented languages Erik Demaine’s paper on pointers Todd Proebsting’s paper on Java to C translation Anonymous paper on structs
Methodology Translation algorithm Formatting Remove programming idiosyncrasies Single-Pass translator Handles syntax whose context is on the same line Two-Pass translator Handles syntax whose context is elsewhere in the program Formatting Makes everything look nice
Methodology Finished Primitive types Arrays Method headers Input/output Preprocessor directives Most package methods Structs In Progress Coming “Soon” Pointers Coming Maybe Graphics Computer-to-computer communication
Methodology Testing & Analysis Testing old C programs Have a few “fake” programs to test particular modules Script to do testing 3rd Quarter Results Compilable and runnable Structs finished Problems with JOGL
Methodology Problems: JOGL won’t install and/or run correctly Graphics put on hold for now Graphics and structs took longer than expected I haven’t done much with pointers yet.
Progress Results Thus Far Program is still error-free All implemented areas fully translated Minus graphics, of course Translator outputs compilable and runnable program
Progress Analysis Slightly behind schedule Expected to finish pointers before end of 3rd quarter, but graphics and structs took too long Don’t know if it will be possible to get graphics translation working Where to go from here Will finish pointers in 4th quarter Possibly revisit graphics if I can get JOGL working