OS/vxWorks VxWorks shell 명령어 tip
  • 728x90
    반응형

    1. -mlongcall

    2. -ansi => -std=c99

     

    =========================================================================

    Options for the VxWorks C compiler 

    A gnu cross-compiler is used to compile the code for the VxWorks/MIPS processors. 

    The standard options are specified in mips.mk as follows:

     

        -I<vxworks>        include the VxWorks headers

        -EB                   big endian

        -mcpu=r4600         mips 4600 processor

        -mips3                 mips 3 instruction set

        -mgp32               use 32 bit general purpose registers

        -mfp32                use 32 bit floating-point registers

        -DCPU=R4000        define for mips cpu

        -DMIPSEB             define for mips big endian

        -g                     debuggin information in native format

        -non-shared          -

        -G 0                   don't put data into small data sections 

        -ansi                  support all ANSI standard C programs

        -nostdinc             don't search for includes in standard directories

        -O2                  optimize at level 2

        -funroll-loops         unroll loops for optimization

        -fno-for-scope       -

        -Wall                  use all recommended warnings

        

    The include option -I is used to include all sub directories of the gds source directory.

    Additional defines (-D options) are used to specify the target system (see Compiling Environment).

     

    종류 명령어 내용
    단축키 <Ctrl>+<Break> 수행 중인 Task, 함수 중지시킴  
    <ESC> + <k> 명령 history 내용을 backward 방향으로 display  
    <ESC> + <j> 명령 history의 내용을 forward 방향으로 display  
    <ESC> + <r>, 'c' 명령어의 해당 글자를 'c'로 대치 <ESC> + <h>, <ESC> + <l>로 해당 위치로 이동해야 함  
    WindSh ?shConfig SH_GET_TASK_IO windSh로 출력 조정  
    환경 설정 ?shConfig SH_GET_TASK_IO ON
    ?shConfig SH_GET_TASK_IO OFF
    Target console로 출력 조정  
    Task 관리 명령 sp Task 생성 sp 타스크명
    td Task 삭제 td 타스크명
    tr Task resume tr 타스크명
    ts Task suspend ts 타스크명
    period 주기적으로 Task 생성 period(5, 타스크명)
    repeat 반복적으로 Task 생성 repeat(3, 타스크명)
    Task 정보 i Task 정보 display (=Browser/Task) i
    ti   ti 타스크명
    tt Stack 정보 display tt "타스크명"
    System 정보 devs device 정보 display devs
    cd working directory 변경 cd directory
    ls working directory 내용 display ls
    lkup symbol 정보 display lkup"symbol"
    h 명령 history 버퍼 display h
    printErrno Error 이름 확인 printErrno(0x38000f)
    System 변경 ld 생성 이미지 load ?shConfig LD_PATH "C:/..." 설정 필요 (\가 아니고 /임) ld < module
    unld 생성 이미지 unload unld "module"
    reboot(ctrl+x) Target rebooting  
    Object 정보 semShow semaphore 정보 보기(=Browser/Object) semShow semId
    msgQShow message que 정보 보기(=Browser/Object) msgQShow msgQId
    moduleShow Loaded된 module 정보 display(=Browser/Memory) moduleShow

     

     

     

     

     

     

     

     

     

     

    728x90
    반응형

    'OS > vxWorks' 카테고리의 다른 글

    vxWorks ip 설정  (0) 2017.07.10
    PCI Express  (0) 2017.07.10
    비트 연산 (비트 출력)  (0) 2017.07.10
    msgQOpen( )  (0) 2017.07.10
    VxWorks 공유 메모리 사용 (Shared_memory_DKM.c)  (0) 2017.07.10
상단으로