PIXNET Logo登入

日常瑣碎事

跳到主文

紀錄生活點點滴滴

部落格全站分類:心情日記

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 23 週二 201011:26
  • Inter-Machine Communication(x86<->Cell<->PAC Duo)

Support blocking Send/Recv
作法:
socket 動態建立,傳送一次就必須建立server and client
 
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(23)

  • 個人分類:課業
▲top
  • 9月 06 週一 201014:55
  • Native C applications for Android

Native C applications for Android
The Android Java SDK is nice and all, but what if you want to run
some C service or code? Well, it turns out that this isn't exactly
difficult. You can compile an application using a standard Linux
cross-compiler, install it and run your programs from the shell.
You will need a cross-compiler
(make sure you get the ARM GNU/Linux target). Then you can just create your program, compile, and upload to
the device:
$ arm-none-linux-gnueabi-gcc -static hello.c -o hello
$ adb push hello/hello data/hello
You can then simply run you application:
$ adb shell data/hello
Hello, Android!
Now of course, this doesn't at all explain how to tie into the graphics or the
rest of the system, but that is left as an exercise for the reader ;)
Update: My instructions were missing the essential
-static part!
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(49)

  • 個人分類:課業
▲top
  • 9月 06 週一 201011:47
  • Compile Android kernel from the source

Compile Android kernel from the source
I confirmed the following procedure only on my linux host (FC8). Sorry for Windows and Mac users.
1. Get toolchains from CodeSourcery (Choose ARM GNU/Linux and IA32 GNU/Linux).
2. Get kernl source code from here.
3. Deploy toolcains and kernel source and enter in the kernel source tree.
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(137)

  • 個人分類:課業
▲top
  • 8月 31 週二 201021:53
  • cache miss types

Three Cs model指的是我們可以將所有cache miss歸類成三大類:
1. Compulsory misses
2. Capacity misses
3. Conflict misses
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(13,975)

  • 個人分類:課業
▲top
  • 8月 24 週二 201014:48
  • Message Queue

message.gifIPC:Message Queues:<sys/msg.h>

Two (or more) processes can exchange information via access to a common
system message queue.
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(1,253)

  • 個人分類:課業
▲top
  • 8月 24 週二 201013:54
  • Shared Memory

Shared Memory is an efficeint means of passing data between
programs. One program will create a memory portion which other
processes (if permitted) can access.

(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(1,644)

  • 個人分類:課業
▲top
  • 8月 23 週一 201011:44
  • Pipe

fig23.jpg1. This is pipe2.c. It start rather like the first examples, up
until we make the call to fork.
UNIX allows two ways of opening a pipe:
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:課業
▲top
  • 8月 23 週一 201011:40
  • Inter-Process Communication


We have now began to see how multiple processes may be running on a
machine and maybe be controlled (spawned by fork() by one of our
programs.
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(50)

  • 個人分類:課業
▲top
  • 5月 11 週二 201016:21
  • ParallelTracer Status

pac dsp頻率:264MHZ
handler 在pac duo 上arm端以及dsp端收集data無誤(文字檔),binary不確定
 
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(22)

  • 個人分類:課業
▲top
  • 4月 27 週二 201013:41
  • POSIX Thread- Overview

The POSIX thread libraries are a standards based thread API for C/C++.
It allows one to spawn a new concurrent process flow. It is most effective
on multi-processor or multi-core systems where the process flow can be scheduled to run on
another processor thus gaining speed through parallel or distributed processing.


Threads require less overhead than "forking" or spawning a new process because
the system does not initialize a new system virtual memory space and environment for
the process.

While most effective on a multiprocessor system, gains are
also found on uniprocessor systems which exploit latency in I/O and other
system functions which may halt process execution. (One thread may execute
while another is waiting for I/O or some other system latency.)
Parallel programming technologies such as MPI and PVM are used in a distributed
computing environment while threads are limited to a single computer system.
All threads within a process share the same address space.
A thread is spawned by defining a function and its arguments which will
be processed in the thread.
The purpose of using the POSIX thread library in your software is
to execute software faster.

 
(繼續閱讀...)
文章標籤

phchiu 發表在 痞客邦 留言(0) 人氣(32)

  • 個人分類:課業
▲top
12»

個人資訊

phchiu
暱稱:
phchiu
分類:
心情日記
好友:
累積中
地區:

熱門文章

  • (13,975)cache miss types
  • (8,128)static link & Dynamic Link & Load

文章分類

  • 工作 (7)
  • 課業 (15)
  • 未分類文章 (1)

最新文章

  • Control network interface using "ioctl" instead of "ifconfig"
  • The Network Traffic Path
  • shell: awk command
  • static link & Dynamic Link & Load
  • Using GCC to create static and shared library .so
  • MTK
  • Callback Function
  • Inter-Machine Communication(x86<->Cell<->PAC Duo)
  • Native C applications for Android
  • Compile Android kernel from the source

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: