Login
Home
Products
Download
Documentation
Community
Company
Forum
Documentation
Bugzilla
FAQ
Register
November 20, 2008, 05:29:08 pm
News
:
Home
Help
Search
Login
Register
Community Forums
>
General
>
General board
>
Analyzing binaries
Pages: [
1
]
« previous
next »
Print
Author
Topic: Analyzing binaries (Read 1623 times)
abailly
Newbie
Posts: 7
Analyzing binaries
«
on:
July 26, 2007, 07:16:41 am »
Hello,
I started using semmlecode on a real project and I need to analyze binaries: ie, I want to run queries on bytecode jars, zips and the like. Is this possible ?
Thanks a lot
Arnaud Bailly
Logged
abailly
Newbie
Posts: 7
Re: Analyzing binaries
«
Reply #1 on:
July 26, 2007, 01:49:36 pm »
Looks like the answer should be true ! The predicates fromLibrary() and fromSource() distinguishes the various elemenst.
Most elements in the Metric package are filtered from source however.
Arnaud Bailly
Logged
Oege de Moor
Newbie
Posts: 30
Re: Analyzing binaries
«
Reply #2 on:
July 26, 2007, 02:21:49 pm »
Hi Arnaud,
By default, SemmleCode only stores those elements from libraries in the database that are directly referenced from the source. To store *everything* in the database, go to Preferences -> SemmleCode and tick the "parse libraries" option. You'll get what you ask for - on most projects, this will add millions of tuples to the database.
The fromSource() predicate is used a lot in metrics, because that is typically what is required - the definition of Lakos level, for example, explicitly makes a distinction between elements in source and libraries, stipulating that library elements do not have a level.
Queries should just work on libraries if you enable "parse libraries" as indicated above. They may take a long time, however, since you'll be processing so much data. Do let us know if you find particular queries take too long - we've got some further optimisations up our sleeves...
Hope this helps,
-Oege
Logged
abailly
Newbie
Posts: 7
Re: Analyzing binaries
«
Reply #3 on:
July 27, 2007, 07:11:36 am »
Hello Oege,
Thanks for the answer. Would it be possible to add the possibility of filtering parsed libraries ? Something based on regexps include/exclude logic would be nice (and quite simple to implement
). That could also be used to restrict parsing of sources BTW.
Regards,
Arnaud Bailly
Logged
Oege de Moor
Newbie
Posts: 30
Re: Analyzing binaries
«
Reply #4 on:
July 27, 2007, 09:49:50 pm »
Hi Arnaud,
Yes - the facility is admittedly not user-friendly, but you can select (and de-select) libraries while creating working sets in the population dialog. We'll look into improving this - thanks for the suggestion!
-Oege
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General board
-----------------------------
Share Queries
-----------------------------
=> Cool queries
-----------------------------
Feature requests
-----------------------------
=> New SemmleCode features
-----------------------------
Installation
-----------------------------
=> SemmleCode installation
-----------------------------
Troubleshooting
-----------------------------
=> SemmleCode Problems
Loading...