eclipse - How to generate control flow graph from Scala code? -


i want see control flow graph generated scala compiler. there way so? tried searching online found eclipse plugins java 1 here www.drgarbage.com none scala.

thanks

edit: took .class file generated scalac , opened dr garbage plug in see bytecode visualized control flow graph. scalac makes 3 different .class files: foo, foo$, , foo$delayedinit$body. see bunch of disconnected graphs , 1 of graphs in foo$ looks reasonable. tried searching online difference between 3 .class files couldn't find anything.

i didn't realize ir (intermediate representation) scala in backend called icode. option in compiler -xprint-icode shows ir separated basic blocks. looking for.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -