Methods for embedding codes executable in a first system having a first microprocessor
into codes executable in a second system having a second microprocessor are described
herein. In one aspect of the invention, an exemplary method includes providing
first codes having a routine, the first codes being compilable to be executed in
the first system, and compiling the first codes, resulting in second codes; the
second codes comprising opcodes of the routine executable by the first system,
which convert the second codes into third codes automatically, the third codes
being compilable to be executed by the second system; this is followed by compiling
the third codes, resulting in the fourth codes being executable in the second system,
and linking the fourth codes, generating an executable image and executing the
executable image in the second system. Other methods and apparatuses are also described.