由买买提看人间百态

topics

全部话题 - 话题: opcode
1 (共1页)
s*******i
发帖数: 178
1
来自主题: BuildingWeb版 - invalid opcode (转载)
【 以下文字转载自 Programming 讨论区 】
发信人: shichisei (北斗), 信区: Programming
标 题: invalid opcode
发信站: BBS 未名空间站 (Thu Nov 20 03:01:59 2008)
We have a Mediawiki site with PHP in Redhat5. There were errors like "
invalid opcode" very often. I thought there may be some problem with PHP
cache and installed APC in this server and it turned out to be much better.
But this error still occurs once a while. Restarting Apache can fix the
problem for the time being. Can anyone tell me what is wrong? Thanks.
s*******i
发帖数: 178
2
来自主题: Programming版 - invalid opcode
We have a Mediawiki site with PHP in Redhat5. There were errors like "
invalid opcode" very often. I thought there may be some problem with PHP
cache and installed APC in this server and it turned out to be much better.
But this error still occurs once a while. Restarting Apache can fix the
problem for the time being. Can anyone tell me what is wrong? Thanks.
Y**G
发帖数: 1089
3
来自主题: Java版 - maven真是个好东东
其实xml很好,可以描述任何有结构的东东,不过就是有时比较繁琐
比如:
for (i = 0; i < 10; i ++) {
sum = sum + i;
}
就是




0





10





阅读全帖
A******g
发帖数: 612
4
Lenovo ideapad的电脑,Geforce GTX 660M的显卡,装了bbswitch with lenovo hack,
bumblebee, nvidia官方驱动。
现在是可以用optirun运行CUDA非图形程序,可以用Intel CPU运行图形程序,比较
OpenGL。 但是optirun不能运行图形程序
比如
$ glxsphere没问题
$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 137 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x200002
Serial number of failed request... 阅读全帖
n******7
发帖数: 12463
5
还是我比较厚道,花半分钟google了一下
http://stackoverflow.com/questions/1653649/how-was-the-first-co
Assembly instructions are (generally) a direct mapping to opcodes, which are
(multi-)byte values of machine code that can be directly interpreted by the
processor. It is quite possible to write a program in opcodes directly by
looking them up from a table (such as this one for the 6039 microprocessor,
for example) that lists them with the matching assembly instructions, and
hand-determining memory addresses/off... 阅读全帖
p****2
发帖数: 387
6
Thanks for your reply!
The flex and bison together create a translator that converts source to
some kind of opcode. Now I want to have a linker links source and opcode
and generates another opcode. I am wondering whether I can create such
linker using Bison.
t*******y
发帖数: 21396
7
来自主题: Military版 - Facebook首个华人员工已回国
Facebook神秘的PHP项目HipHop for PHP终于揭开面纱。这个项目由一个PHP到C++的转
换程序,一个重新实现的PHP运行库,和许多常用PHP扩展的重写版本构成,目的是旨在
加速和优化PHP。
用Facebook官方博客(无法直接访问)上项目负责人赵海平(北大1987届遗传与分子生
物专业,普林斯顿计算机科学博士)的话说,HipHop项目对Facebook影响巨大。它目前
已经支撑了Facebook 90%的Web流量。由于HipHop,Facebook Web服务器上的CPU使用平
均减少了50%,从而大大减少了服务器的需求。为了让这一改进也惠及社区,他们决定
将之开源,希望能够进一步帮助提高更多大型复杂PHP网站的可伸缩性。
.........................
HipHop开发故事
赵海平透露,项目最初是来自几年前Facebook公司一次Hackathon活动(员工在一个晚
上自由发挥,实验新的想法),他手工将PHP转换为C++代码,虽然语法上很类似,但是
无论是CPU还是内存使用,转换后的C++代码都大大优于PHP。于是他想,如果构建一个
系统,... 阅读全帖
p****u
发帖数: 1940
8
来自主题: Hardware版 - 请教像素自己变是怎么回事啊?
这下面是显示器出错的信息,大牛能帮忙看看吗?
Log Name: Microsoft-Windows-DeviceSetupManager/Admin
Source: Microsoft-Windows-DeviceSetupManager
Date: 1/23/2016 8:27:24 AM
Event ID: 131
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: SilverBox
Description:
Metadata staging failed, result=0x80070490 for container '{0F0EBDE7-D946-
540E-865A-2F725A5417C3}'
Event Xml:
http://schemas.microsoft.com/win/2004/08/events/event">

<... 阅读全帖
N****w
发帖数: 21578
9
来自主题: Linux版 - sandy bridge and games
这有阿,不少呢
http://phoronix.com/forums/showthread.php?28092-Intel-Sandy-Bri
% sh x64_1024x768_windowed_tess_normal.sh
Xlib: extension "NV-GLX" missing on display ":0.0".
Loading "/u1/home/x/sandy/bench/Unigine_Heaven/bin/../data/heaven_2.
1.cfg"...
Engine::init(): clear video settings for "Mesa DRI Intel(R)
Sandybridge Desktop GEM 20100330 DEVELOPMENT 1.4 (2.1 Mesa 7.9)"
Loading "libGL.so.1"...
Loading "libopenal.so.1"...
Set 1024x768 windowe... 阅读全帖
x****u
发帖数: 44466
10
来自主题: Programming版 - 转:王垠--一种新的操作系统设计
完全两回事
Singularity is an experimental operating system built by Microsoft Research
between 2003 and 2010.[1] It was designed as a highly-dependable OS in which
the kernel, device drivers, and applications are all written in managed
code.
Contents [hide]
1 Workings
2 Security design
3 Project status
4 Similar projects
5 See also
6 References
7 External links
Workings[edit source | editbeta]
The lowest-level x86 interrupt dispatch code is written in assembly language
and C. Once this code has done... 阅读全帖
n****l
发帖数: 3375
11
来自主题: Military版 - 底层架构随便改一改
底层架构随便改一改,类似阿里的yunos
然后把安卓虚拟机的opcode改一改,1成2 2改成3
再弄个app转换器,把安卓app转成自己的就ok
c**1
发帖数: 71
12
来自主题: JobHunting版 - Polish Notation
int reverse_polish(const char*& str) {
OpCode op = getOpCode(str);
int x = reverse_polish(str);
int y = reverse_polish(str);
return op.apply(x,y);
}
c**1
发帖数: 71
13
来自主题: JobHunting版 - Polish Notation
here is the correct version:
int reverse_polish(const char*& str) {
if (is_number(str)) return parse_nuber(str);
OpCode op = getOpCode(str);
int x = reverse_polish(str);
int y = reverse_polish(str);
return op.apply(x,y);
}
note there is no error check, and note str is passed as reference to const
char*, so that functions can read what it needs as well as forwarding the
pointer.
L***s
发帖数: 1148
14
object models, metaclass, decorators, enhanced generators / coroutines
threading models, GIL, asyncio & alternative async libs like gevent/twisted
writing C/C++ extensions
writing 2/3 compatible Python code
(for web developers) familiar with django, flask, twisted or tornado
implementation of dict, OrderedDict, deque, etc. in CPython & implications
memory management & fragmentation prevention in CPython
PVM internals and optimization, opcodes and AST hacking
alternative implementations like PyPy... 阅读全帖
s*****w
发帖数: 1527
15
来自主题: Working版 - Any one works in Intel for 64bit asm ?
Basically my asm code wants to jump
from address “ffff f800 02df 10dc”
to “ffff f8800 0452 c350” in 64-bit windows 7,
What’s the opcode for jmp look like ?
E9 …..
Ff25 …………….
thanks a lot !
c********g
发帖数: 530
16
来自主题: WebRadio版 - A Simple Tool for Recording
http://radio.about.com/cs/recordingstreams/ht/RecordStreams.htm
1. Download OpD2d from here http://www.opcode.co.uk/opd2d/default.asp. Install.
2. Download encoder for MP3 from here
i586 processor: http://www2.arnes.si/~mmilut/BEnc-0942-Win-i586-dll.zip
Pentium 4 processor: http://www2.arnes.si/~mmilut/BEnc-0942-Win-P4-dll.zip
put the unzipped BladeEnc.dll into the same direcory where OpD2d is installed.
3. For recording instroductions, see above link at radio.abou.com
h******y
发帖数: 173
17
来自主题: BuildingWeb版 - invalid opcode (转载)
error-log怎么说的?

.
I*****y
发帖数: 6402
18
来自主题: BuildingWeb版 - invalid opcode (转载)
recompile your PHP? and your PHP version is....?

.
b********e
发帖数: 74
19
来自主题: Database版 - SQL Server 安装问题请教
想重装SQL Server 2005 developer edition. 不知为什么出现错误.无法安装OWC11.
好像是无法安装Office 2003 Web Components. Google了半天也不知道为什么.请教一
下这里的大牛.
=== Verbose logging started: 4/17/2014 20:26:58 Build type: SHIP UNICODE 3
.01.4001.5512 Calling process: C:Program FilesMicrosoft SQL Server90Setup
Bootstrapsetup.exe ===
MSI (c) (04:0C) [20:26:58:156]: Resetting cached policy values
MSI (c) (04:0C) [20:26:58:156]: Machine policy value 'Debug' is 0
MSI (c) (04:0C) [20:26:58:156]: ******* RunEngine:
******* Pro... 阅读全帖
c******d
发帖数: 171
20
在我的Desktop上enable了LogonAudit。 发现很多的这样的纪录。其中的
SQLServerMachine是Remote的SQL Server。 它为什么要Logon我的机器呢?下面是从我
的机器的EventView看到的:
An account was successfully logged on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
New Logon:
Security ID: domainSQLServerMachine$
Account Name: SQLServerMachine$
Account Domain: domain
Logon ID: 0x1710dcecb
Logon GUID: ... 阅读全帖
n**********l
发帖数: 271
21
来自主题: EmergingNetworking版 - ZTE?
dig enterprise.zteusa.com
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN
Why did ZTE take down its site?
s*****g
发帖数: 1055
22
来自主题: EmergingNetworking版 - ZTE?
dig enterprise.zteusa.com
; <<>> DiG 9.8.3-P1 <<>> enterprise.zteusa.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1325
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
Besides, it is a sub-domain, who cares?
G*O
发帖数: 706
23
来自主题: Java版 - jvm是怎么implement monitor的?
monitor是通过jvm instruction的两个opcode实现的
如果不调用jvm的这两个指令
是不是就没有其他办法实现synchronization,理论上可以证明嘛?
p******s
发帖数: 18
24
来自主题: Linux版 - 问个很难的问题
想学学kernel,fedora 10 x86_64 kernel module xchg 指令停着不往前走了,xchg lock memory 所以
机器freeze了, 用magic sysrq 产生 vmcore,分析不出原因. 也google 不到什么,就
有一贴说386 xchg 可能产生illegal opcode exception 会lock up system, 因为
memory locked , 不能access exception handler 的code. 现在的processor难到还有
这问题? 能不能用crash 看一下当前有什么interrupt 呢?怎么知到CPU为什么不往下
走了?
s*****w
发帖数: 1527
25
【 以下文字转载自 Working 讨论区 】
发信人: somehow (要像蟑螂一样的坚强), 信区: Working
标 题: Any one works in Intel for 64bit asm ?
发信站: BBS 未名空间站 (Tue Jul 13 18:31:16 2010, 美东)
Basically my asm code wants to jump
from address “ffff f800 02df 10dc”
to “ffff f8800 0452 c350” in 64-bit windows 7,
What’s the opcode for jmp look like ?
E9 …..
Ff25 …………….
thanks a lot !
s*****w
发帖数: 1527
26
this is the part i don't understand,
what's /4 ?
for this example, what's the exact opcode pls ?
X****r
发帖数: 3557
27
Don't simply take the words from any book. Other than translating
mnemonics to opcodes, Assembler helps resolving symbols (ever
calculated jump offset manually?) and provides macros, making writing
code much much easier.
r*****3
发帖数: 143
28
中文名: Intel® 64 and IA-32体系结构:软件开发人员手册
原名: Intel® 64 and IA-32 Architectures Software Developer's Manual
作者: Intel Corporation
资源格式: PDF
版本: 文字版
出版社: Intel Corporation
书号: 25462-042US
发行时间: 2012年03月
地区: 美国
语言: 英文
简介:
汇编语言和高级语言的最根本的区别在于:在汇编语言中,程序员必须掌握数据存储和
机器相关的大量细节。与高级语言相比,在声明和移动数据时,汇编器给了程序员极大
的自由。汇编器只进行很少的错误检查,但却提供了大量的操作符和寻址表达式,使程
序员几乎能够做任何事情。然而,这种自由是必须付出一定代价的。这种代价就是在开
始编写有意义的程序之前,开发人员必须掌握大量的细节知识。因而这也是《Intel&
reg; 64 and IA-32 Architectures Software Developer's Manuall》一书的功能所在。
目录:
Volum... 阅读全帖
a****l
发帖数: 8211
29
来自主题: Programming版 - 今天被一个面试问题难住了
http://www.cpptalk.net/containingrecord-macro-vt50598.html
Hi All
I was reading an article
"http://msdn.microsoft.com/msdnmag/issues/1000/Winsock/default.aspx"
where I encountered a macro called CONTAINING_RECORD. A purpose of this
macro is to return a poniter to the extended structure.
After the pointer to the OVERLAPPED structure is returned, the
CONTAINING_RECORD macro can be used to obtain a pointer to the extended
structure.
OVERLAPPED *Overlap;
OVERLAPPEDPLUS *OverlapPlus;
typedef struct _... 阅读全帖
a****l
发帖数: 8211
30
来自主题: Programming版 - 今天被一个面试问题难住了
http://www.cpptalk.net/containingrecord-macro-vt50598.html
Hi All
I was reading an article
"http://msdn.microsoft.com/msdnmag/issues/1000/Winsock/default.aspx"
where I encountered a macro called CONTAINING_RECORD. A purpose of this
macro is to return a poniter to the extended structure.
After the pointer to the OVERLAPPED structure is returned, the
CONTAINING_RECORD macro can be used to obtain a pointer to the extended
structure.
OVERLAPPED *Overlap;
OVERLAPPEDPLUS *OverlapPlus;
typedef struct _... 阅读全帖
n*****t
发帖数: 22014
31
来自主题: Programming版 - 12306 的一点思路
12306 实在太适合用 ASIC 了。每张票由前段索引好,最后就只不过是 5M 数据的有无
票、锁定,10Mb 的数据量,24 bit 地址加 2 bit opcode
n*****t
发帖数: 22014
32
来自主题: Programming版 - 狠偷懒狠偷懒的一个测试
我们蓝翔技校水平差,码的程序肯定错误百出,大家不许笑。
单进程,也不用锁了。5M 票,320M request,原始数据都是偷 memory 的,测试结果是
3 秒不到。request 前 2 bit 是 opcode,最后几位是 ticket ID。
1、我这个没搜空闲票,先声明一下。
2、IO 会多占一点时间,呵呵,不过估计也就多几秒的时间,懒得整太复杂了。
3、HW 就不提了,丢脸,唯一能透露的是 virtualpc
#include
#include
#include
#define SIZE 5*1024*1024
#define LOOPS 64
unsigned char tickets[SIZE];
unsigned long *reqs;
unsigned char *results;
int main() {
int i;
unsigned char op;
unsigned char *ticket;
unsigned long *... 阅读全帖
k**********g
发帖数: 989
33
if you are oooooooold enough, you could have used Intel BCD opcode on x86.
http://en.wikipedia.org/wiki/Intel_BCD_opcode
历史的巨轮V5
w***g
发帖数: 5958
34
来自主题: Programming版 - 转行的不应该看不起科班出身的
刷刷题确实能进FLG,但我们科班出身的在学校也不是没学有用的东西。
我上面说我上本科时写过CPU啥的有人可能不信,我就贴几个10年前的课程设计。
我觉得转行的至少应对科班出身的保持应有的尊重。全栈程序员绝对不是个笑话。
用VHDL设计的CPU
http://donkey.wdong.org/~wdong/under/BD250/
(因为芯片资源有限,字长只有8位)
这个CPU支持的汇编语言
这个程序跑起来会往LED上显示一些东西
http://donkey.wdong.org/~wdong/under/BD250/SAMPLE/led.asm
汇编器
http://donkey.wdong.org/~wdong/under/BD250asm/
Pascal编译器,读入pascal源程序产生nasm汇编程序
http://donkey.wdong.org/~wdong/under/mepc/
产生i386汇编语言的后端
http://donkey.wdong.org/~wdong/under/mepc/opcode.i386
pascal语法
http://donkey.wdong.or... 阅读全帖
n****j
发帖数: 1708
35
来自主题: Programming版 - 古德霸:协议确定了,请你确认
浪费了点,应该 64 bit 就足够了。另外,一般留几个 bit 做 opcode,比如
heartbeat 。
d***a
发帖数: 13752
36
来自主题: Programming版 - 王垠对编程语言的理解还是挺深的
这种hack程序,不都是改program binary和data binary吗。
想起俺以前上一门微处理器的课,老师要求直接用十六进制(实际上是二进制)代码对
Z80编程,最后主要的opcode都背下来了。
s*m
发帖数: 21
37
来自主题: Unix版 - HELP! about running cxterm
When i start the cxterm.These message is displayed:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 92
Current serial number in output stream: 93
Any DX know what is wrong? My netscape also can not display the Chinese
font now.
Thanks.
s*m
发帖数: 21
38
来自主题: Unix版 - HELP! about running cxterm
I have run the command. the fonts are there. It still don't work.
BTW, when i run the acrobat. the similar message also display:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 1324
Current serial number in output stream: 1326
If there are some problems on the system?
Thanks.
w******f
发帖数: 8
39
I was trying to open a remote x window on Unix. Here is the error. Any body
know how to correct?
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 19 (X_DeleteProperty)
Resource id in failed request: 0x0
Serial number of failed request: 83
Current serial number in output stream: 84
Thanks.
1 (共1页)