Ignore:
Timestamp:
Jun 24, 2012, 7:42:09 PM (12 years ago)
Author:
okuma-top
Message:

totally brush up

Location:
SimpleSample/trunk/SimpleSampleTrace
Files:
4 added
2 moved

Legend:

Unmodified
Added
Removed
  • SimpleSample/trunk/SimpleSampleTrace/Makefile

    r30 r34  
    1 # このファイルは tecsgen により自動生成されました
    2 # Makefile.temp は gen の一つ上のディレクトリに移して使用します
    3 #  % mv Makefile.temp Makefile
    4 #
    5 # clean のデフォルト動作は $(GEN_DIR)/Makefile.* を削除します
    6 #
    7 # このファイルは GNU make で gcc を用い POSIX 環境で動作するモジュールをビルドするのに適切なように生成されています
    8 # vpath, CFLAGS, OTHER_OBJS などを調整する必要があるかもしれません
    9 # 他の環境やターゲットの場合、このファイルを元に変更する必要があります
    10 
    111# 変数 #_MVAR_#
    12 TARGET = SimpleSample-trace.exe
    13 TIMESTAMP = tecsgen.timestamp-trace
    14 TECSGEN_EXE = tecsgen
     2TARGET = SimpleSample.exe
     3TIMESTAMP = tecsgen.timestamp
     4TECSGEN_EXE = tecsgen.exe
    155BASE_DIR = .
    166CC = gcc
     
    188LD = gcc
    199LDFLAGS =
    20 GEN_DIR = $(BASE_DIR)/gen-trace
     10GEN_DIR = $(BASE_DIR)/gen
    2111SRC_DIR = $(BASE_DIR)/src
    2212_TECS_OBJ_DIR = $(GEN_DIR)/
     
    4939
    5040$(TIMESTAMP) : $(TECS_IMPORTS)
    51         $(TECSGEN_EXE)  -g gen-trace -k euc -I src -I gen -I ../../tecsgen/tecs/../test/cygwin -I ../../tecsgen/tecs SimpleSample-trace.cdl
     41        $(TECSGEN_EXE)  -g gen -k euc -I src -I gen -I ../../tecsgen/tecs/../test/cygwin -I ../../tecsgen/tecs SimpleSample.cdl
    5242        touch $(TIMESTAMP)
    5343
  • SimpleSample/trunk/SimpleSampleTrace/SimpleSample.cdl

    r30 r34  
    55 *  |             |           |             |          |             |
    66 *  |   tTask     | sTaskBody |   tSimple   |  sSample |   tSample   |
    7  *  |   Task      |-----------|>  Simple    |----------|>  Sample    |
     7 *  |   Task      |-----------|>  Simple    |==========|>  Sample    |
    88 *  |             |cTask eBody|             |cCall eEnt|             |
    99 *  |             |Body       |             |          |             |
    1010 *  +-------------+           +-------------+          +-------------+
     11 *
     12 *  * SimpleSample/SimpleSample.cdl を参照
     13 *  * この例では Trace プラグインが指定される。以下の※を参照
     14 *  * Trace プラグインのため tSysLog, tKernel を用いる
    1115 */
    12 
    1316
    1417// cygwin 用の簡易な型定義
    1518import( <cygwin_kernel.cdl> );
    16   // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
     19  // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); に相当する
    1720
     21// tSysLog の定義 (Trace の出力先)
    1822import( <tSysLog.cdl> );
    1923
     24// セル SysLog (Trace の出力先)
    2025cell tSysLog SysLog {
    2126};
     27// セル Kernel (Trace の時刻を得る)
    2228cell tKernel Kernel {
    2329};
    2430
     31// シグニチャ sSample
    2532signature sSample {
    2633        ER  sayHello( [in]int32_t times );
     
    2835};
    2936
     37// セルタイプ tSample
    3038celltype tSample {
    3139        entry sSample eEnt;
    3240};
    3341
    34 [singleton,active]
     42// セルタイプ tSimple
    3543celltype tSimple {
    3644        call sSample cCall;
     
    3846};
    3947
     48// セル Sample
    4049cell tSample Sample {
    4150};
    4251
     52// セル Simple
    4353cell tSimple Simple {
    44         [through(TracePlugin,"")]
     54        [through(TracePlugin,"")]       //  <<< ※ この行を挿入
    4555                cCall = Sample.eEnt;
    4656};
    4757
     58// セル Task
    4859cell tTask Task {
    4960        cBody = Simple.eBody;
     
    5263        taskAttribute = C_EXP( "TA_ACT" );
    5364};
     65
Note: See TracChangeset for help on using the changeset viewer.