Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
actor/ | 20-Oct-2010 22:41 | - | ||
c/ | 20-Oct-2010 22:42 | - | ||
codegen.jar | 20-Oct-2010 22:43 | 774K | ||
codegen.xml | 23-Oct-2009 11:02 | 1.8K | ||
demo/ | 20-Oct-2010 22:43 | - | ||
gui/ | 20-Oct-2010 22:42 | - | ||
java/ | 20-Oct-2010 22:42 | - | ||
kernel/ | 20-Oct-2010 22:41 | - | ||
makefile | 03-Dec-2009 20:35 | 2.6K | ||
rtmaude/ | 20-Oct-2010 22:42 | - | ||
test/ | 03-Oct-2010 11:42 | - | ||
util/ | 20-Oct-2010 22:42 | - | ||
$PTII/ptolemy/codegen/demo/Ramp/Ramp.xml
$PTII/bin/vergil -codegen
$channel
, then it
will be expanded. This can cause problems if the
macro is ill-formed. To top expansion, use \$channel
IOException: java.io.IOException: CreateProcess: make -f Model.mk error=2
make
is not in your path.
Under Windows, you may need to install Cygwin, see the
Ptolemy
II Cygwin installer. Under Windows, if Cygwin is installed, then
be sure that C:\cygwin\bin
is in your Windows path.
To edit your path, do Start Menu
-> Settings
->
Control Panels
-> System
->
Advanced
-> Environment Variables
.
make: *** [Ramp] Error 1
C:\Progra~1\Java\jdk1.5.0_11\jre\bin\clientin your path. If you are running Vergil from the command line as $PTII/bin/ptinvoke, then this has been handled for you. If you are running via Eclipse, then you must update your path by hand.
C:\cygwin\bin
to the
Windows path by doing:
Start Menu
-> Settings
->
Control Panels
-> System
->
Advanced
-> Environment Variables
and adding C:\cygwin\bin
to the path.
make -f Model.mk CC_FLAGS=-mwindows
#include <sys/time.h>At the beginning of
main()
method, insert:
struct timespec start, end; double dT = 0.0; clock_gettime(CLOCK_REALTIME, &start);Toward the end of
main()
method, insert:
clock_gettime(CLOCK_REALTIME, &end); dT = end.tv_sec - start.tv_sec + (end.tv_nsec - start.tv_nsec) * 1.0e-9; printf("execution time: %g seconds\n", dT);You can also get the time resolution of your system by inserting the following code:
struct timespec res; clock_getres(CLOCK_REALTIME, &res); printf(" time resolution: %ld ns\n", res.tv_nsec);
make -f ModelName.mk WARNING_CC_FLAGS= USER_CC_FLAGS="-pipe -O0 --verbose -Q"Each of the options above:
-Wall
-pipe
-O0
--verbose
-Q