我知道MAC OS X 10.5安装了Apache,但我想安装最新的Apache而不涉及操作系统默认值,因为它将来会导致其他udpates出现问题.所以我使用了以下网址的详细信息:http://diymacserver.com/installing-apache/compiling-apache-on-leopard/但我不确定如何使这个64位版本的Apache似乎仍然安装32位版本.
任何帮助表示赞赏
干杯
我在运行以下汇编代码时遇到错误
#cpuid using C library Functions
.section .data
output:
.asciz "The Processor Vendor ID is '%s'\n"
.section .bss
.lcomm buffer, 12
.section .text
.globl main
main:
movq $0, %rax
cpuid
movq $buffer, %rdi
movq %rbx, (%rdi)
movq %rdx, (%rdi)
movq %rcx, (%rdi)
pushq $buffer
pushq $output
call printf
addq $8, %rsp
pushq $0
call exit
Run Code Online (Sandbox Code Playgroud)
它遇到了C库部分的分段错误调用:call printf它在x86_64模式下运行.在编译x64代码时,我错过了关于c库的任何内容?或者代码有问题
谢谢
我想知道是否可以使用VC++ LP64
而不是LLP64
,我知道我可以使用其他编译器,如GCC或Intel C++,但我想出于各种原因使用VC++.
不需要与Microsoft标头等兼容,我已经使用LIBC作为我的运行时库.
仅当值的值需要比当前平台支持的更多位时才抛出异常.
虽然ToInt32
我的描述不是这样,但我认为标题不完全正确(为了简洁起见),
更正确的问题是:"为什么IntPtr.ToInt32
会引发OverflowException
在64位模式,价值观适应的Int32和显式(IntPtr的到Int32)已不"
反编译IntPtr
ToInt32
和运算符看起来非常相似:
public static explicit operator int(IntPtr value)
{
return (int) value.m_value;
}
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public unsafe int ToInt32()
{
return (int) this.m_value;
}
Run Code Online (Sandbox Code Playgroud)
我想知道是什么让ToInt32
抛出异常,是不安全的关键字?
可能重复:
加载x86或x64程序集
我正在尝试编译任何CPU .NET项目,但我必须链接SQLite库,它具有x86和x64平台的不同版本.仅将DLL版本更改为x64没有帮助,应用程序无法启动,我需要使用x64引用重新编译代码.当我添加x86和x64引用时,由于冲突,它无法编译.我无法使用x86编译应用程序,因为我正在使用的系统COM库之一在WOW64下无法运行.
All 32-bit VSS applications (requesters, providers, and writers) must run as native 32-bit or 64-bit applications. Running them under WOW64 is not supported
所以我需要构建任何CPU项目,但我目前看到的唯一解决此问题的方法是为x86和x64重复项目.有更好的吗?
UPDATE
当我在项目中引用x64库,但尝试加载x86库时,我得到以下异常.
The located assembly's manifest definition does not match the assembly reference.
考虑一下这个x64 NASM语法程序集:
inc qword [rax]
inc qword [rcx]
inc qword [rdx]
inc qword [rbx]
inc qword [rsp]
inc qword [rbp]
inc qword [rsi]
inc qword [rdi]
Run Code Online (Sandbox Code Playgroud)
与nasm组装(并与gnu ld链接)后,objdump -d
报告以下内容:
4000b0: 48 ff 00 incq (%rax)
4000b3: 48 ff 01 incq (%rcx)
4000b6: 48 ff 02 incq (%rdx)
4000b9: 48 ff 03 incq (%rbx)
4000bc: 48 ff 04 24 incq (%rsp)
4000c0: 48 ff 45 00 incq 0x0(%rbp)
4000c4: 48 ff 06 incq (%rsi)
4000c7: 48 ff 07 incq …
Run Code Online (Sandbox Code Playgroud) 我有一个来自Win 8.1/64的用户模式转储,转储是在Wer对话时附加Windbg.然后.ecxr显示了Windbg注入线程的ntdll!DbgBreakPoint.(像平常一样)
我已经通过检查所有堆栈来识别线程,并找到具有以下内容的线程:
# Call Site
00 ntdll!NtWaitForMultipleObjects
01 KERNELBASE!WaitForMultipleObjectsEx
02 kernel32!WerpReportFaultInternal
03 kernel32!WerpReportFault
04 KERNELBASE!UnhandledExceptionFilter
05 ntdll!RtlUserThreadStart$filt$0
06 ntdll!_C_specific_handler
07 ntdll!RtlpExecuteHandlerForException
08 ntdll!RtlDispatchException
09 ntdll!KiUserExceptionDispatch
10 <My faulty code which generated the exception>
Run Code Online (Sandbox Code Playgroud)
kvn aslo发布一个TrapFrame @ 00000000`0379ed28)
09 00000000`0379e900 00000000`00250bc8 : 00000000`00000000 00000000`0026ca09 00000000`0379f160 00000000`0379f168 : ntdll!KiUserExceptionDispatch+0x2e (TrapFrame @ 00000000`0379ed28)
Run Code Online (Sandbox Code Playgroud)
有没有办法使用陷阱框架来获取上下文记录以输入.cxr?或者是找到异常上下文的其他可能性?
尝试安装Python 3.4.3 64位,它给我以下错误:'这个Windows Installer程序包有问题.无法运行此安装所需的程序.联系您的支持或包装供应商'我没有血腥的想法这意味着所以请帮助.在此先感谢我是我的计算机上的管理员,拥有所有权限我的Windows是64位,是Windows 8.1
我们有一些旧类使用Contnrs.TObjectList
,在某些情况下,自定义比较函数用于对这些列表进行排序,使用如下所示:
procedure TMyClass.SortItems;
function CompareFunction(Item1, Item2: Pointer): Integer;
begin
Result := TSomeItem(Item1).Value - TSomeItem(Item2).Value;
end;
begin
Sort(@CompareFunction);
end;
Run Code Online (Sandbox Code Playgroud)
在为Win32编译时,此代码没有问题,但是当我们为Win64编译它时,我们发现排序不再起作用.
我已经修改了一些,Generics.Collections.TObjectList<T>
而是修改了CompareFunction
它以及如何调用它.所以我的猜测是它与CompareFunction
被调用的方式有关,方法是在@
运算符前加上运算符,据我所知,它指的是函数的地址.
为什么上面的代码不适用于Win64,以及解决它的正确方法是什么?
这是我的build.gradle:
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
* bundle directly from the development server. Below you can see all the possible configurations
* and their defaults. If you decide to add a configuration …
Run Code Online (Sandbox Code Playgroud) 64-bit ×10
assembly ×2
.net ×1
abi ×1
android ×1
anycpu ×1
apache ×1
clr ×1
delphi ×1
google-play ×1
installation ×1
intptr ×1
libc ×1
machine-code ×1
macos ×1
nasm ×1
native ×1
project ×1
python ×1
python-3.x ×1
react-native ×1
visual-c++ ×1
windbg ×1
x86 ×1