-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 04 May 2005 13:08, Ozan TÃrkyÄlmaz wrote: > i am thinking how i cound make translator. what i thougt was read 4 > bits from the code in binary mode and look it up in translation table. > of course some things cound not have one word translation. in this > cases tere would be a several word translation. > > are you seeing any wrong things with that. Are you planning on doing this to convert from a binary on one machine to a binary on another? Is this an on-the-fly translation? Problems I can think of include the format of the executable for whatever OS and hardware is going to load it; proper address correction; proper translation between architectures that do not support the same functionality, for example going from a CISC instruction set to a RISC one; big or little endian orientation problems with both code and data; translating addressing modes from one instruction set to another; etc. For me, the easiest thing to do is recompile the C/C++ (or whatever) source code for the target platform. Let the compiler do the hard part. Besides, it will probably do a much better job than any translator could. Eli -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQFCeYCTucd29Sgpe1wRAtXCAKDyffht41aV2P925b85ucDO4KvEnACdHfOi jj0G5+nvAprWtzvQsDAy0Kk= =j7Iv -----END PGP SIGNATURE----- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/