<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nodchip</author_name>
  <author_url>https://blog.hatena.ne.jp/nodchip/</author_url>
  <blog_title>nodchipの日記</blog_title>
  <blog_url>https://nodchip.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>LLVMで(ryものすごくどうでも良いようなことをやっているような気がしないでもないのだが、とりあえずできたので書く。前回二つ分の合わせ技で行けるらしい。LLVMには関数ポインタを表す型は用意されていないっぽい(?)ので、代わりにi8*を使用する。ソースコードは以下の通り。 void printInteger(unsigned int i) { printf(&quot;printInteger() : %d\n&quot;, i); } extern &quot;C&quot; __declspec(dllexport) void callPrintInteger(void (*function)(unsigned int), u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodchip.hatenadiary.org%2Fentry%2F20100813%2F1281675543&quot; title=&quot;LLVMでJITアドレス空間にある関数に別の関数へのポインタを渡して呼び出す - nodchipの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-13 13:59:03</published>
  <title>LLVMでJITアドレス空間にある関数に別の関数へのポインタを渡して呼び出す</title>
  <type>rich</type>
  <url>https://nodchip.hatenadiary.org/entry/20100813/1281675543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
