Intel x86到ARM汇编转换(Intel x86 to ARM assembly conversion)
我目前正在学习
ARM
汇编语言;为此,我试图将一些
x86 code (AT&T Syntax)
为ARM汇编(Intel Syntax)
代码。__asm__("movl $0x0804c000, %eax;"); __asm__("mov R0,#0x0804c000");
从这个文档中 ,我了解到在x86中,堆结构的Chunk 1从0x0804c000开始。 但是,当我尝试做同样的操作时,我收到以下错误:
/tmp/ccfNZp9F.s:174: Error: invalid constant (804c000) after fixup
我假设问题是ARM只能加载32位指令。
Question 1: Any idea what would be the first chunk in case of ARM processors? Question 2:
从我之前的问题 ,我知道内存间接寻址是如何工作的。
下面写的片段是否做同样的工作?
movl (%eax), %ebx LDR R0,[R1]
我正在使用
ARMv7 Processor rev 4 (v7l)
I am currently learning
ARM
assembly language;To do so, I am trying to convert some
x86 code (AT&T Syntax)
to ARM assembly(Intel Syntax)
code.__asm__("movl $0x0804c000, %eax;"); __asm__("mov R0,#0x0804c000");
From this document, I learn that in x86 the Chunk 1 of the heap structure starts from 0x0804c000. But I when I try do the same in
arm
, I get the following error:/tmp/ccfNZp9F.s:174: Error: invalid constant (804c000) after fixup
I am assuming the problem is that ARM can only load 32bit instructions.
Question 1: Any idea what would be the first chunk in case of ARM processors? Question 2:
From my previous question, I know how memory indirect addressing works.
Are the snippets written below doing the same job?
movl (%eax), %ebx LDR R0,[R1]
I am using
ARMv7 Processor rev 4 (v7l)
原文:https://stackoverflow.com/questions/17297695
最满意答案
不是我所知道的。 它需要
SELECT Fname, Lname, Dependent_Name, Relationship FROM EMPLOYEE LEFT JOIN DEPENDENT ON Ssn = Essn WHERE Adddress LIKE '%TX'
Not as far as I'm aware. It needs to be
SELECT Fname, Lname, Dependent_Name, Relationship FROM EMPLOYEE LEFT JOIN DEPENDENT ON Ssn = Essn WHERE Adddress LIKE '%TX'
相关问答
更多-
复杂SQL加入帮助!(Complex SQL Join help!)[2022-02-08]
@ ChaosPandion关于重新格式化的评论是一个好主意,但也许你需要一些帮助来理解什么是好的格式化。 嗯,这对每个人来说可能都不一样:-)但如果我正在编写你的查询,我会将其格式化如下: SELECT TOP (100) PERCENT a.Id, a.DateCreated, a.DateModified, a.LastUpdatedBy, a.AccomplishmentTypeId, ... -
sql连接语法(sql join syntax)[2021-12-22]
您正在使用隐式连接语法。 这相当于使用JOIN关键字,但完全避免使用此语法是一个好主意,而是使用显式连接: SELECT bb.name FROM big_box bb JOIN middle_box mb ON mb.parent_box = bb.id JOIN little_box lb ON lb.parent_box = mb.id WHERE lb.color = 'green' 您还缺少连接条件中的列名称。 我猜想这个专栏叫做id 。 这种类型的查询应该是有效的,如果表正确索引。 特别是在连 ... -
您可以使用: on ProductRaw like ProductClean + '%' 但是,我的建议是使用计算列更改表: alter table t add ProductClean as (left(ProductRaw, charindex(' (', ProductRaw + ' (') - 1))); 然后,您可以在ProductClean上添加索引并执行更合理的连接: on t.ProductClean = ?.ProductClean You can use like: on ...
-
这是什么样的SQL连接?(What kind of SQL join is this?)[2022-07-30]
SELECT field1, field2, field2 FROM tableA WHERE field1='x' UNION SELECT field1, field2, field2 FROM tableB WHERE field1='x' 如果你想要每条记录,请使用UNION ALL ,甚至重复。 SELECT field1, field2, field2 FROM tableA WHERE field1='x' UNION SELECT field1, field2, field2 FROM t ... -
内部联接: SELECT exp_member_groups.group_title FROM exp_members INNER JOIN exp_member_groups ON exp_members.group_id = exp_member_groups.group_id WHERE exp_members.member_id = @memberId INNER JOIN: SELECT exp_member_groups.group_title FROM exp_members INNER J ...
-
不是我所知道的。 它需要 SELECT Fname, Lname, Dependent_Name, Relationship FROM EMPLOYEE LEFT JOIN DEPENDENT ON Ssn = Essn WHERE Adddress LIKE '%TX' Not as far as I'm aware. It needs to be SELECT Fname, Lname, Dependent_Name, Relationship FROM EMPLOYEE LEFT JOI ...
-
试试这个查询。 select S.userName, S.firstName, S.lastName, A.actionDetails, A.actionDate from Departments D join Staff S on d.departmentID=s.departmentID join Actions A on s.staffID=A.staffID WHERE D.departmentID = YourDeparmentID; SQl中的JOIN类型 Try this Query. ...
-
用它作为 var result = (from t1 in table1 join t2 in table2 on t1.id equals t2.itemId into t2d from td in t2d.DefaultIfEmpty() group t1 by t1.item into t1g select new {item=t1g.key, sum =t1g.Sum(p ...
-
SQL Join:同类表(SQL Join: Tables of the same kind)[2023-01-13]
您不需要加入,您需要使用UNION查询: SELECT title, painterID artistID FROM Paintings UNION ALL SELECT title, sculptorID artistID FROM Sculptures 这将选择Paintings表中的所有绘画,以及Sculptures表中的所有雕塑。 painterID和sculptorID都将具有artistID的别名。 You don't need a Join, you need to use an UNION ... -
如何自己加入这个SQL(How to self join this SQL)[2022-03-06]
此查询执行“详细信息”表的自联接以获取所需的结果。 SELECT distinct new.buildNumber FROM CSAResults.dbo.Details old JOIN CSAResults.dbo.Details new ON old.buildNumber = new.buildNumber WHERE old.result = 'pass' AND old.versionStatus = 'Old' AND new.result='fail' AND new.versi ...