C to PLP Compiler Test Scripts

55 views
Skip to first unread message

Christopher Mar

unread,
Jul 12, 2015, 12:28:00 AM7/12/15
to progressive-le...@googlegroups.com

I'm currently working with Vignesh on adding features to the C to PLP compiler.  The current Makefile runs some tests that compile a set of C programs and then uses script files for verification.  I was wondering if there is documentation for these scripts.  I recognized some aspects, such as asserts for variable values, but there is other instructions I don't recognize (they look like they may be command line instructions for PLPTool).  As an example I copied the contents of one of the programs and the corresponding script below.

 

Test program: for.c

 

int result = 0;

 

int main(void) {

int i;

int a = 0;

for (i=0; i<10; i++) {

a++;

}

result = a;

return a;

}

 

 

Test script: for.script

 

silent

loadpreset 2

bp set _halt

s 1000000

assert 3 result 10

rbus result

David Fritz

unread,
Jul 12, 2015, 9:52:33 AM7/12/15
to progressive-le...@googlegroups.com
These are just commands handed to the command line simulator component
of plptool. See source (and hints on available commands) at
https://github.com/Progressive-Learning-Platform/progressive-learning-platform/blob/ebe26965795759ab77938f776d41bbb1f2381c6f/reference/sw/PLPTool/src/plptool/mips/SimCLI.java

There's no documentation beyond this source, but the commands checked
in simCLICommand() should be mostly self-explanatory.
> --
> You received this message because you are subscribed to the Google Groups
> "progressive-learning-platform" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to progressive-learning...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages