jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

An interesting program

发表于 2008-03-21   |   分类于 c/c++/algorithm
#include<stdio.h>void main(char ){for(–;putchar(_++["J!Mpwf!Zpv241"]-1););}输出结果:I Love You !!note: 数组a[i]可以写成i[a]来遍历字符串!
阅读全文 »

Linux虚拟机中的GUI定向到cygwin-X

发表于 2008-03-21   |   分类于 Linux App
方法一:host:Windows XP虚拟机:Redhat9在host上安装Cygwin-X(嫌麻烦可以选择全部安装Cygwin中的软件包)打开cygwin bash shell,输入X,启动X server(server是运行于host机器上的)X server打开后,可以在shell中输入xterm -display 127.0.0.1:0.0 -ls,这时X server中显示一个终端,可以输入命令,在xterm中输入xhost +192.168.200.5 (虚拟机的ip)在Redhat9虚拟机中,export DISPLAY=10.1.10.68:0 (host主机的ip)然后虚拟机中的任何图形操作都可以在Cygwin-X中显示了方法二:http://www.idcnews.net/html/edu/20070101/293338.html实现远程X首先需要安装一个windows下的X server,有很多。有个免费的Xming,从这里下载:http://sourceforge.net/projects/xming安装后,运行,使用很简单,不再多说。配置sshd,打开X11 ...
阅读全文 »

【zz】Failing To See the Big Picture

发表于 2008-03-21   |   分类于 c/c++/algorithm
http://blog.csdn.net/pongba/archive/2008/03/03/2143245.aspxFailing To See the Big PictureMistakes we make when learning programming By pongba (http://blog.csdn.net/pongba) Let’s start with an obvious fact:The Inconvenient Human Nature, #1People are inherently more easily attracted by “interesting” (as opposed to “mundane”) things. (We will define “interesting” in the later parts)What can we derive from this simple axiom?A lot of things. But since we&r ...
阅读全文 »

Adding custom instructions for gcc & gas

发表于 2008-03-20   |   分类于 gcc/binutils/make/共享库
add custom instructions for gcc & gasby jfo, jfojfo@gmail.comRecently I have been working with SimpleScalar——a computer architecture simulator running its own instruction set. For more info please ref http://www.simplescalar.com/, and SimpleScalar v4 can be foundhere http://www.simplescalar.com/v4test.html. In this article I’ll introduce how to add your own instructions to gcc & gas. My work was based on ss(Simple Scalar?) instruction set, which is MIPS-like, but with its ow ...
阅读全文 »

L4Ka:Create disk image(fd,hd)

发表于 2008-03-19   |   分类于 l4ka::pistachio/iguana
http://l4ka.org/projects/pistachio/ia32/gettingstarted.phpEnvironment Redhat9Linux redhat9 2.4.20-8gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)In fact, this version gcc won’t compile the kernel correctly. I compile the kernel & user program (grabmem kickstart l4test pingpong sigma0 x86-kernel)in a remote mechine, which has the following environment:Linux 2.6.23-ARCHgcc version 4.2.21. Create a floopy disk imagea. create a directory "fdsource" in current directory, and co ...
阅读全文 »

genemit

发表于 2008-03-15   |   分类于 gcc/binutils/make/共享库
/genemit.c/static voidmax_operand_1 (x)     rtx x;{register RTX_CODE code;register int i;register int len;register char fmt;if (x == 0)    return;code = GET_CODE (x);if (code == MATCH_OPERAND && XSTR (x, 2) != 0 && XSTR (x, 2) != ‘’)    register_constraints = 1;if (code == MATCH_SCRATCH && XSTR (x, 1) != 0 && XSTR (x, 1) != ‘’)    register_constraints = 1;if (code == MATCH_OPERAND || code ...
阅读全文 »

read rtx from .md file & gencodes

发表于 2008-03-14   |   分类于 gcc/binutils/make/共享库
;; example .md file "ss.md" from SimpleScalar;; ………………..;;;;    ADDITION;;;; ………………..;;(define_insn "adddf3"[(set (match_operand:DF 0 "register_operand" "=f")    (plus:DF (match_operand:DF 1 "register_operand" "f")        (match_operand:DF 2 "register_operand" "f")))]"TARGET_HARD_FLOAT""add.d\t%0,%1,%2"[(set_attr & ...
阅读全文 »

【zz】Adding New SIMD Instructions to the GCC Back-end

发表于 2008-03-12   |   分类于 gcc/binutils/make/共享库
http://blog.chinaunix.net/u/30686/showart.php Adding New SIMD Instructions to the GCC Back-end Mauricio Alvarez: alvarez (at) ac (dot) upc (dot) edu Created: 16/09/2005. Modified: 13.03.2006. 1. Introduction ...
阅读全文 »

Linux终端彩色输出

发表于 2008-03-11   |   分类于 Linux App
echo -en ‘E[37;44;1m’                  ^^ ^^   ^^   ^                 |    |    |    |                 |    |    ...
阅读全文 »

笔记片段——段治文课

发表于 2008-03-08   |   分类于 DefaultCategory
民主政府:民主选举的程序、制约权力的程序责任政府:被动责任和主动责任引咎辞职服务政府:主要提供更多更好的公共品,日益减少对事务性问题的管制桥、路、厕所、开放公园民间组织幸福指数,杭州质量政府:政策法规要合理可持续,政府提供的公共品要比市场更严格的质量要求窨井盖专业政府:建立一支稳定的专业的高素质的公务员队伍,拥有一批善于治国精于行政的职业政治家。80多岁的人组织70多岁的人讨论60多岁人的退休问题决策者不再从公务员里提拔。解决年龄偏大和缺乏创新问题。(公务员提拔过程中:棱角磨平,缺乏个性,没有创新)从职业政治家里直接提拔。诸葛亮与基辛格透明政府:信息公开是民主的基本条件选举名单,不熟悉参选人,从头往后选,后面的吃亏;从后往前,中间的吃亏了法治中国社会主义国家,立法严,执法松,(严到了不能执行)实体——程序:程序高于实体,否则缺少公正,世界上没有公正的实体    切蛋糕程序:一个小孩先切,另一个先挑,程序上的公平性情——法:思想道德修养vs.法律基础(文化困境)    先 ...
阅读全文 »
1…424344…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces