LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 冰原子

最近出的两道嵌入式软件工程师面试题,答对者甚少啊!

[复制链接]
发表于 2008-11-5 10:14:14 | 显示全部楼层

ARM7 不是没有MMU吗?

参考答案:
第1题,答中一个得5分,答出其它正确答案的,也得5分。
a)都基于TCP/IP协议,都提供了面向连接的TCP SOCK和无连接的UDP SOCK。
b)都是一个sock结构体。
c)都是使用sock文件句柄进行访问。
d)都具有缓冲机制。

小弟一时也没有答上来,不过一直知道a,b,c。d没有仔细研究过。

以前一直有个误区,ARM7都没有MMU,今天特地找了一下。有的是有的,有的是没有。
http://www.arm.com/products/CPUs/families/ARM7Family.html
The ARM7 family is a range of low-power 32-bit RISC microprocessor cores optimized for cost and power-sensitive consumer applications. Offering up to 130MIPs (Dhrystone2.1), the ARM7 family incorporates the Thumb 16-bit instruction set - enabling 32-bit performance at 8/16-bit system cost. The family consists of the ARM7TDMI, ARM7TDMI-S and ARM7EJ-S processor cores and the ARM720T  cached processor macrocell, each of which has been developed to address different market requirements:

    *  Integer processor
    *  Synthesizable version of the ARM7TDMI processor
    *  Synthesizable core with DSP and Jazelle TM  technology enhancements for Java acceleration
    *  Cached core with Memory Management Unit (MMU) supporting operating systems including Windows CE, Palm OS, Symbian OS and Linux

受教了。谢谢。
回复 支持 反对

使用道具 举报

发表于 2008-11-6 23:18:10 | 显示全部楼层

纯探讨

嵌入式工程师首先应该保证test程序的可运行。
所以在testd中ldconfig和chmod +x都没有必要做。



欢迎楼主和大伙讨论
回复 支持 反对

使用道具 举报

发表于 2008-11-19 18:23:44 | 显示全部楼层
我是做嵌入式的,说实话第一道题我一点都答不出来。因为我从来没有在Windows上做过开发,一直都是Linux或者裸机上面做。 第二道题,如果不查阅资料,我还是做不出来。呵呵,有点惭愧了。
回复 支持 反对

使用道具 举报

发表于 2008-11-25 17:27:13 | 显示全部楼层
Post by 冰原子;1888536
参考答案:
########################################
#testd is a daemon script to start an watch the program test
########################################
#!/bin/sh

#load *.so that may need
if [ -r /sbin/ldconfig ]; then
    ldconfig
fi

#add the libs PATH that may need
export LD_LIBRARY_PATH="/lib"

#count is the counter of test started times
count=0

#main loop
while [ 1 ] ;do
        #add execute property for /mnt/test/test
        chmod +x /mnt/test/test
        #start test
        /mnt/test/test
        #the running times counter
        let count=count+1
        echo "test running times is $count"
        #Is test running too many times?
        if [ "$count" -gt 100 ]; then
                echo "Will reboot because of test running too many times"
                reboot
        fi
        #wait for test stoping...
        sleep 3
done
#########################################




我是新人,希望用人单位能参考下大公司的选人标准,注重一下潜力,性格等非技术性的测试。
不过楼主也讲到“沟通能力”,这方面你做得不错,也就不怪你了。

刚入行,程序我看不懂,就说说里面的注释好了

1.#testd is a daemon script to start an watch the program test
  说实话,这句话什么意思我不懂,但鉴于start跟watch是两个动词,词性一样,
  那夹在中间的必然是连词了,所以,把an 改成and
  整句话应该改为:testd is a daemon script to start and watch the program test

2.#count is the counter of test started times
  语法错,定冠词"the"用错,这里应该用不定冠词"a",不过这个错得轻微,不扣分
  词法错,start用错,根据环境,可以选用launch或running
  整句话应该改为:count is a counter of test running times

3.#add execute property for /mnt/test/test
  还是用词,这里我估计property是属性的意思,那应该改为attribute
  property是不能这么用D。另外,for 改为 to 会顺一点,不过不碍事
  整句话应该改为:add execute attribute to /mnt/test/test

4.#start test
  这个前面说过了

5.#the running times counter
  这个定冠词就用对了

6.#Is test running too many times?
  running 改为 runs
  整句话应该改为:Is test runs too many times?

7."Will reboot because of test running too many times"
  这句应该不是注释,不过被我看到了,也抓出来好了
  "because of"后面应该接名词,如果坚持要用because,那要把of去掉
  不过这里应该用when来代替,
  running 前面说过
  还缺了个主语,不过,算了,
  整句话应该改为:Will reboot when test runs too many times

8.#wait for test stoping...
  这里是要用ing没错,但却用错了地方,主导动词是wait
  整句话应该改为:waiting for test stop
回复 支持 反对

使用道具 举报

发表于 2008-11-25 18:09:26 | 显示全部楼层
成英语语法课了。

PS. 句首要大写哟。

回复 支持 反对

使用道具 举报

发表于 2008-11-25 22:58:57 | 显示全部楼层
14楼的回答,让楼主感情严重被撅,哈哈。。。
回复 支持 反对

使用道具 举报

发表于 2008-11-25 23:09:50 | 显示全部楼层
Post by 郭天聪;1913600
我是新人,希望用人单位能参考下大公司的选人标准,注重一下潜力,性格等非技术性的测试。
不过楼主也讲到“沟通能力”,这方面你做得不错,也就不怪你了。

刚入行,程序我看不懂,就说说里面的注释好了

1.#testd is a daemon script to start an watch the program test
  说实话,这句话什么意思我不懂,但鉴于start跟watch是两个动词,词性一样,
  那夹在中间的必然是连词了,所以,把an 改成and
  整句话应该改为:testd is a daemon script to start and watch the program test

2.#count is the counter of test started times
  语法错,定冠词"the"用错,这里应该用不定冠词"a",不过这个错得轻微,不扣分
  词法错,start用错,根据环境,可以选用launch或running
  整句话应该改为:count is a counter of test running times

3.#add execute property for /mnt/test/test
  还是用词,这里我估计property是属性的意思,那应该改为attribute
  property是不能这么用D。另外,for 改为 to 会顺一点,不过不碍事
  整句话应该改为:add execute attribute to /mnt/test/test

4.#start test
  这个前面说过了

5.#the running times counter
  这个定冠词就用对了

6.#Is test running too many times?
  running 改为 runs
  整句话应该改为:Is test runs too many times?

7."Will reboot because of test running too many times"
  这句应该不是注释,不过被我看到了,也抓出来好了
  "because of"后面应该接名词,如果坚持要用because,那要把of去掉
  不过这里应该用when来代替,
  running 前面说过
  还缺了个主语,不过,算了,
  整句话应该改为:Will reboot when test runs too many times

8.#wait for test stoping...
  这里是要用ing没错,但却用错了地方,主导动词是wait
  整句话应该改为:waiting for test stop



6.#Is test running too many times?
running 改为 runs
整句话应该改为:Is test runs too many times?
is 和 runs 不能放在一起的吧?
回复 支持 反对

使用道具 举报

发表于 2008-11-25 23:12:41 | 显示全部楼层
楼主英语不行啊,在公司里呆多了就是这样的,Chinese English。
回复 支持 反对

使用道具 举报

发表于 2008-11-26 09:37:33 | 显示全部楼层
6.#Is test running too many times?
running 改为 runs
整句话应该改为:Is test runs too many times?
is 和 runs 不能放在一起的吧?


Does test run too many times?


回复 支持 反对

使用道具 举报

发表于 2008-11-27 20:18:14 | 显示全部楼层
sh脚本有明显的错误吧?
while [ 1 ]; do

done
这个循环永远不被执行,sh是以0为真的!!!估计楼主没写过sh脚本吧?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表