[eresi-dev] Graphs of ARM code

Thiago Figueredo Cardoso tfcardoso at gmail.com
Fri May 15 04:57:17 UTC 2009


Hi everyone,

These days we've been focusing on the graph generation of ARM code and
now we've achieved some results! I tested with the following code and
got the graph you can find at http://imagebin.ca/view/phrg0Fi.html.

#include <stdio.h>
#include <stdlib.h>

long int calc(int a, int b)
{
  long int c = a * b;
  c *= 500000000;
  return c;
}

int main(int argc, char **argv)
{
  if (argc == 0)
    printf("Test!\n");
  else
    printf("%l\n",calc(20,50));
  return 0;
}

It's not complete yet, as the ARM support still misses the complete
support for some instructions on the ARM mode and doesn't provide any
support for thumb mode code. Jesus, graph on your binary doesn't
generate a nice graph :/

Thiago Figueredo Cardoso



More information about the eresi-dev mailing list