本文介绍了Cygwin的:汇编语言开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不知道这是否应该是线程我的一部分
在但我认为昨天开始
我问这里的问题是完全不同的。

Firstly I'm not sure if this should be part of the thread Istarted yesterday on assembly and the stack but I thinkthe question I'm asking here is quite different.

我一直在试图了解到底是什么,通过
维基百科和谷歌,我没有多少运气。
我用gcc刚刚开始在Linux汇编编程
气汇编。我在工作中使用机器午餐期间
仅有的Windows就可以了。我想练一些汇编
这里语言编程,所以我想Cygwin的也许能
提供帮助。

I'm been trying to understand what exactly Cygwin is, viaWikipedia and Google, I'm not having much luck.I've just begun assembly programming on Linux using the gccgas assembler. I'm using a machine at work during lunch thatonly has Windows on it. I wanted to practice some assemblylanguage programming here so I thought Cygwin might be ableto help.

误我认为,code我在Linux的写作
可能只是被编译并在Windows使用Cygwin运行。
Cygwin的让我来编译code罚款:

Mistakenly I believed that the code I was writing in Linuxcould just be compiled and run in Windows using Cygwin.Cygwin allows me to compile the code fine:

as someAssmProg.as -o someAssmProg.o
ld someAssmProg.o -o someAssmProg

但是,如果我尝试在Cygwin下运行code,

But if I try to run the code under Cygwin,

./someAssmProg

我得到一个未处理的win32异常发生的消息

I get a "unhandled win32 exception occured" message

现在我假定这是因为code我写的
适用于Linux操作系统。我认为尽管这Cygwin的将处理
有了这个。是Cygwin的只是真正的意思被用来开发
在Unix风格的命令行方式的Windows应用程序?

Now I am assuming this is because the code I'm writing isintended for Linux. I thought though that Cygwin would dealwith this. Is Cygwin just really meant to be used to developWindows applications in a Unix style command line way?

我又知道这可能是显而易见的大多数人在这里,但
我真的糊涂了!

Again I know this is probably obvious to most folks here butI'm genuinely confused!

P.S我试过之前的Windows,但它是相当沉重的安装。

P.S I've tried AndLinux before for Windows, but it's quite a hefty install.

推荐答案

Cygwin的是一个运行时层,它在Windows上提供了库和软件从Unix / Linux操作系统的世界。它不会让你的汇编code运行,因为操作系统仍然是Windows下的,所以所有的中断等仍然在Windows,而不是Linux,版本。此外,如果你真的想在Windows上运行汇编器,你要做的事情很多不同于你在Linux中做(或DOS,对于这个问题)。

Cygwin is a runtime layer that provides libraries and software from the Unix/Linux world on Windows. It will not allow your assembler code to run, as the OS is still Windows underneath, so all the interrupts, etc. are still the Windows, not Linux, versions. In addition, if you really want to run assembler on Windows, you have to do things a lot differently than you do in Linux (or DOS, for that matter).

这篇关于Cygwin的:汇编语言开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 12:25