如何使用命令行将 perl 项目导入 eclipse 工作区?我正在使用 EPIC 插件和 padwalker 进行调试
long int FinalValue;
char a,b,c,d;
a=0x1;
b=0x2;
c=0x3;
d=0x4;
FinalValue |= (long)a;
FinalValue <<= 0x8;
FinalValue |= (long)b;
FinalValue <<= 0x8;
FinalValue |= (long)c;
FinalValue <<= 0x8;
FinalValue |= (long)d;
Printf("%d, %d, %d, %d", a,b,c,d);
Printf("FinalValue = %ld"FinalValue);
Run Code Online (Sandbox Code Playgroud)
获得的输出: 1 2 3 4 FinalValue = 0x05020304
预期输出: 1 2 3 4 FinalValue = 0x01020304
当使用不同的输入(对于a,b,c,d)执行上述代码时,在MSB中获得的最终值的输出为:0x(a | d)bcd(在上面的示例中为0x1或者为0x4,以获得0x5) )
为什么MSB字节与LSB字节进行OR运算?
用于查找perl版本"perl -V"的命令提供了与平台,编译器,链接器和库,动态链接,编译时选项和本地应用的补丁相关的信息.您能告诉我这些信息的提取位置(环境变量或任何其他方法)以及每组下各种参数的描述.我在库文件包含中遇到问题,因为我的机器中安装了许多版本的Perl.
以下是我从机器上获得的描述:
我的perl5(修订版5版本10颠覆0)配置摘要:
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTE
XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='3.4.5', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseek
size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\li
b"'
libpth=C:\strawberry\c\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 …Run Code Online (Sandbox Code Playgroud)