标签: 64-bit

在64位Mac上安装Apache Web Server

我知道MAC OS X 10.5安装了Apache,但我想安装最新的Apache而不涉及操作系统默认值,因为它将来会导致其他udpates出现问题.所以我使用了以下网址的详细信息:http://diymacserver.com/installing-apache/compiling-apache-on-leopard/但我不确定如何使这个64位版本的Apache似乎仍然安装32位版本.

任何帮助表示赞赏

干杯

apache macos 64-bit

5
推荐指数
1
解决办法
2174
查看次数

装配分段故障

我在运行以下汇编代码时遇到错误

#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库的任何内容?或者代码有问题

谢谢

64-bit assembly libc

5
推荐指数
1
解决办法
2310
查看次数

如何使MS Visual C++使用LP64而不是LLP64

我想知道是否可以使用VC++ LP64而不是LLP64,我知道我可以使用其他编译器,如GCC或Intel C++,但我想出于各种原因使用VC++.

不需要与Microsoft标头等兼容,我已经使用LIBC作为我的运行时库.

64-bit abi visual-studio-2010 visual-c++

5
推荐指数
1
解决办法
1062
查看次数

为什么IntPtr.ToInt32在64位模式下抛出OverflowException并且Explicit(IntPtr到Int32)不

运营商在MSDN上的描述有一个注释:

仅当值的值需要比当前平台支持的更多位时才抛出异常.

虽然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抛出异常,是不安全的关键字?

clr 64-bit intptr

5
推荐指数
1
解决办法
2620
查看次数

.NET AnyCPU项目链接特定于平台的库

可能重复:
加载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

http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/eadf5dcd-fbd1-4224-9a56-b5843efebb15/

所以我需要构建任何CPU项目,但我目前看到的唯一解决此问题的方法是为x86和x64重复项目.有更好的吗?

UPDATE

当我在项目中引用x64库,但尝试加载x86库时,我得到以下异常.

The located assembly's manifest definition does not match the assembly reference.

.net 64-bit x86 project anycpu

5
推荐指数
1
解决办法
1449
查看次数

为什么这个机器代码是为"inc qword [rsp]"生成的?

考虑一下这个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)

64-bit assembly nasm machine-code

5
推荐指数
1
解决办法
292
查看次数

如何在X64上查找用户模式异常的上下文记录

我有一个来自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?或者是找到异常上下文的其他可能性?

64-bit windbg

5
推荐指数
2
解决办法
4215
查看次数

python 3.4.3 64位无法运行此安装所需的程序

尝试安装Python 3.4.3 64位,它给我以下错误:'这个Windows Installer程序包有问题.无法运行此安装所需的程序.联系您的支持或包装供应商'我没有血腥的想法这意味着所以请帮助.在此先感谢我是我的计算机上的管理员,拥有所有权限我的Windows是64位,是Windows 8.1

python installation 64-bit python-3.x

5
推荐指数
1
解决办法
5601
查看次数

在Win64上对旧的Contnrs.TObjectList进行排序

我们有一些旧类使用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,以及解决它的正确方法是什么?

delphi 64-bit

5
推荐指数
1
解决办法
113
查看次数

如何为React Native的64位版本准备我的应用程序?

这是我的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 android native google-play react-native

5
推荐指数
1
解决办法
1906
查看次数