2007年3月9日 星期五

[程式開發]如何解析obj for Linux system

Command:
mips-linux-nm pots.o


Display message:

00000140 b BatteryActiveFlag
U BatteryIsInUse
U BspLedAction
00000374 b CesPacketRx
0000034c b CesPacketTx
U cpu_data
00000128 b DebugRxSignal
0000012c b DebugTxSignal
000000b4 b drv_error
00000058 b DspEnableFlag
U fi_bl2000_drv_ic_disable
U fi_bl2000_drv_ic_enable
U fi_bl2000_drv_ic_init_int
U fi_bl2000_drv_ic_isr_ack
U fi_bl2000_drv_timer_alloc
U fi_bl2000_drv_timer_start
U fi_bl2000ponmaker_configure_cpu_rx_queue
U fi_bl2000ponmaker_read_packet
U fi_bl2000ponmaker_send_packet_to_pon
U fi_bl200_drv_timer_get_index
00000000 r __func__.21298
U getABCD
000000a0 b icParams
U ifxConfigurePOTSPort
U ifxFillTransmitCESPacket
U ifxGetPotsReceivedSignal
U ifxInitPotsModule
U ifxLoadPotsFPGA
U ifxPeriodicTimer
U ifxReadPOTSHookState
U ifxReceiveCESPacket
U ifxSetPOTSPortState
00000000 r $LC0
0000001c r $LC1
00000178 r $LC10
0000019c r $LC11
000001c8 r $LC12
00000208 r $LC13
0000023c r $LC14
0000026c r $LC15
000002a4 r $LC16
000002d4 r $LC17
00000304 r $LC18
0000033c r $LC19
00000038 r $LC2
00000368 r $LC20
0000039c r $LC21
000003d0 r $LC22
00000404 r $LC23
00000438 r $LC24
00000448 r $LC25
0000047c r $LC26
000004b0 r $LC27
000004e4 r $LC28
00000518 r $LC29
00000050 r $LC3
00000528 r $LC30
00000538 r $LC31
00000564 r $LC32
00000590 r $LC33
00000598 r $LC34
000005d8 r $LC35
000005e8 r $LC36
00000610 r $LC37
00000624 r $LC38
0000062c r $LC39
00000080 r $LC4
00000660 r $LC40
00000690 r $LC41
000006b8 r $LC42
000006cc r $LC43
000006dc r $LC44
000006e4 r $LC45
000006e8 r $LC46
00000090 r $LC5
000000c4 r $LC6
000000f8 r $LC7
0000012c r $LC8
00000150 r $LC9
U memcmp
U memcpy
U memset
00000138 b OltMacAddr
00000130 b OntMacAddr
00000088 b params
U pi_bl200_drv_timer_clear
00000084 b pllTimerCnt.21577
00000080 b ponPacketIsrCnt.21297
0000005c b PotsAlarmState
0000024c b PotsBufferRx
0000014c b PotsBufferTx
000000f8 T PotsCheckNoNewRing
00000000 T PotsCheckRing
00000e04 T PotsConfigurePort
000001a8 T PotsDealRing
00000254 T PotsDealRingMax
00000110 b PotsDebugRxPktBuf
00000004 d PotsDebugSignalContext
00002060 T PotsDebugSignalContextGet
00002054 T PotsDebugSignalContextSet
00000014 d PotsDefaultCfg
U PotsDspSlicEnable
00001590 T PotsEnable
00000144 b PotsEnableFlag
000005a0 T PotsEnableTimerIsr
00000010 d PotsExtIntNum
00000148 b PotsFlowId
00000000 D PotsFrameLossPeriod
00000538 T PotsGetAlarmState
00001738 T PotsGetState
00000020 d PotsGfsaWatchDogTimer
00000040 b PotsHookState
00001fd4 T PotsHookStateUpdateCallback
00001f34 t PotsLedIndication
U PotslineInfoShow
00000041 b PotsLineState
00000850 T PotsLoadFPGA
00000048 b PotsLoopbackFlag
000000b8 b PotsLpbkPm
00000008 d PotsMaxPortNum
000011a0 T PotsModeDspEnable
00001b30 t PotsPllTimer
00000050 b PotsPortAlarmMask
00000000 B PotsPortConfigured
00000030 B PotsPortState
000009a0 t PotsReadFromPonWritePots
00000f74 T PotsReadHookState
00000060 b potsRingCount.21105
00001eb8 T PotsRingDebug
00000070 b potsRingFlag.21104
00001f6c T PotsRingStateUpdateCallback
000000e4 b PotsRxPm
000003f8 T PotsSetAlarmState
000015e0 T PotsSetFlowId
00001530 T PotsSetFrameLossPeriod
000016e8 T PotsSetLoop
00001640 T PotsSetMac
00001f28 T PotsSetPortNum
0000154c T PotsSetPortPortAlarmSurvState
0000104c T PotsSetPortState
0000125c T PotsStart
00000054 b PotsStartFlag
0000000c d PotsTcont
0000004c b PotsTcontQueue
00000550 t PotsTimerIsr
000000c8 b PotsTxPm
U printk
U request_irq
00000044 b RingStartTimer
U spi_init
000000b0 b xoTimerID
0000009c b xoTimerIntNum

2007年3月8日 星期四

[程式心得]如何建立Libery for c/c++ in Linux system

一般很少要隱藏Source code ,
但是如果碰到不想給別人看到程式碼的時候怎麼辦?

下面提供一個方法...
就是把XXX.o 合併成 *.a 的方式

使用ar這一個指令,()是說明

ar rcs cdlib.a(目的檔) xx/*.o yy/*.o

就會產生一個cdlib.a
當要compile的時候只要把cdlib.a包含進來使用就可以了
ex:
gcc -o xxx.o cdlib.a XXX

2007年3月2日 星期五

[心情]看來賺錢都多寡才是成就????

RD做了快兩年了!
在工作上一直覺得很多要學,很多要做......
但是薪水一直進展的很慢....

看看朋友一個比一個賺得多.....
我有點洩氣了!
是我只是這樣的料嗎?
我換工作薪水就會高的起來嗎?
最近一直在想....剩至想放棄RD.....

深深吸一口氣...
讓自己站起來