Internships/ProjectIdeas/NativeLibraryCalls

From QEMU
Revision as of 14:48, 23 September 2021 by Ajb (talk | contribs) (Created page with "=== Native Library Calls === '''Summary:''' Implement a native bypass for when a program running under linux-user calls a well known library call When running under linux-u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Native Library Calls

Summary: Implement a native bypass for when a program running under linux-user calls a well known library call

When running under linux-user we translate the whole program which includes all the library calls. A number of well understood library functions are usually fairly heavily optimised for the processor they run on. For example the semantics of memcpy are very well understood. We could consider instead of translating those library functions call to native versions of the code. As the runtime of library functions is generally biased to a few core functions only a small subset would need to be hooked to be useful (mem*, str*).

Links:

Details:

  • Skill level: intermediate with a good understanding of how linkers link to library calls
  • Language: C
  • Mentor: Alex Bennée (alex.bennee@linaro.org)
  • Suggested by: Alex Bennée