STRIDE Build Tools: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Top level page for Build Tools topic.
__FORCE_TOC__


PAL pdf document:
[http://www.s2technologies.com/wiki/images/e/e3/S2sPAL.pdf]
Image Tag:
[[Image:ProductionBuildEFS.jpg]]
[[Image:ProductionBuildEFS.jpg]]


==Build Tools==
=Build Tools=


===Command line Utilities:===
==Command line Utilities:==


# [[s2scompile|The STRIDE compiler (s2scompile.exe)]]
# [[s2scompile|The STRIDE compiler (s2scompile.exe)]]<br><br>
# [[s2sbind|The STRIDE database binder (s2sbind.exe)]]
# [[s2sbind|The STRIDE database binder (s2sbind.exe)]]<br><br>
# [[s2sinstrument|The STRIDE instrumentation generator (s2sinstrument.exe)]]
# [[s2sinstrument|The STRIDE instrumentation generator (s2sinstrument.exe)]]
==Examples==
#'''Compiling multiple files'''<br><br>s2scompile –I"C:\STRIDE\inc" –DN=100 file1.h file2.h<br><br>
#'''Database Binding'''<br><br>s2sbind –-starting_suid=123 test.sidb file1.meta file2.meta<br><br>
#'''Intercept Module Generation'''<br><br>
##Single Intercept Module<br><br>s2sinstrument –-im_name=test test.sidb<br><br>
###Pre-build Instrumentation: The S2 compilation, binding and instrumentation are done before the user’s build.<br><br>s2scompile is called first, then s2sbind, and finally s2sinstrument:<br><br>s2scompile –I”C:\STRIDE\inc” –DN=100 file1.h file2.h<br>s2sbind –-starting_suid=123 test.sidb file1.meta file2.meta<br>s2sinstrument –-im_name=test -–mode=SDud(f1) -–mode=P(f2) test.sidb<br><br>
###In-build Prototyping with Post-build Implementation: The compilation, binding and IM prototyping (header files only generation) are done incrementally. For each component of the user’s build just a subset of SCL files are compiled, bound to a database (merged into the previously created database) and IM prototypes are generated for a set of interfaces defined in those SCL files.<br><br>s2scompile –I”C:\STRIDE\inc” –DN=100 file1.h<br>s2sbind –-starting_suid=123 test.sidb file1.meta<br>s2sinstrument –-im_name=test –prototype=p1 -–mode=SDud(f10,f11) test.sidb<br><br><br>s2scompile –I”C:\STRIDE\inc” –DN=100 file2.h<br>s2sbind –-input_database=test.sidb test.sidb file2.meta<br>s2sinstrument –-im_name=test –prototype=p2 -–mode=P(f20,f21) test.sidb<br><br><br>s2sinstrument –-im_name=test –implement -–mode=SDud(f10,f11) -–mode=P(f20,f21) test.sidb<br><br>

Revision as of 01:18, 19 June 2008

__FORCE_TOC__

File:ProductionBuildEFS.jpg

Build Tools

Command line Utilities:

  1. The STRIDE compiler (s2scompile.exe)

  2. The STRIDE database binder (s2sbind.exe)

  3. The STRIDE instrumentation generator (s2sinstrument.exe)


Examples

  1. Compiling multiple files

    s2scompile –I"C:\STRIDE\inc" –DN=100 file1.h file2.h

  2. Database Binding

    s2sbind –-starting_suid=123 test.sidb file1.meta file2.meta

  3. Intercept Module Generation

    1. Single Intercept Module

      s2sinstrument –-im_name=test test.sidb

      1. Pre-build Instrumentation: The S2 compilation, binding and instrumentation are done before the user’s build.

        s2scompile is called first, then s2sbind, and finally s2sinstrument:

        s2scompile –I”C:\STRIDE\inc” –DN=100 file1.h file2.h
        s2sbind –-starting_suid=123 test.sidb file1.meta file2.meta
        s2sinstrument –-im_name=test -–mode=SDud(f1) -–mode=P(f2) test.sidb

      2. In-build Prototyping with Post-build Implementation: The compilation, binding and IM prototyping (header files only generation) are done incrementally. For each component of the user’s build just a subset of SCL files are compiled, bound to a database (merged into the previously created database) and IM prototypes are generated for a set of interfaces defined in those SCL files.

        s2scompile –I”C:\STRIDE\inc” –DN=100 file1.h
        s2sbind –-starting_suid=123 test.sidb file1.meta
        s2sinstrument –-im_name=test –prototype=p1 -–mode=SDud(f10,f11) test.sidb


        s2scompile –I”C:\STRIDE\inc” –DN=100 file2.h
        s2sbind –-input_database=test.sidb test.sidb file2.meta
        s2sinstrument –-im_name=test –prototype=p2 -–mode=P(f20,f21) test.sidb


        s2sinstrument –-im_name=test –implement -–mode=SDud(f10,f11) -–mode=P(f20,f21) test.sidb