From: Frank Kotler on 4 Sep 2007 23:54 Betov wrote: > Frank Kotler <fbkotler(a)verizon.net> �crivait news:kqfDi.7240$5x2.1160 > @trndny07: > > >>http://mysite.verizon.net/fbkotler/gtk_asm-samples-6.4.tar.bz2 > > > These examples show a problem (for RosAsm), with the modules > names including '.'. I will have to modify a little bit the > RosAsm convention, because of this, but... how? > > Actually, we have something rather complex. Example: > > * call "DllName.FunctionName" ; The normal way. > > * call "ModuleName.ext.FunctionName" ; For any Module Type. > > * Call "FunctionName" ; Once a complete form has been given. > > Which achieves into problems like: > > * call "Module.Name.02.Function.Name" !!!... > > So, if the Modules Names can include a '.', and/or if the > Functions names can include a '.', i have to redefine the > writing convention. What separator to choose then, is a > problem: I have seen terrific namings in Visual Basic, for > example, that RosAsm could never re-assemble. > > Ideas? I'm not sure what the "problem" is. I see cruft like "02.gtk-label" in directory names. I'm sure those can be renamed without problem. I also see that the macros used employ a leading "." on "local" (stack) variable names. I rather like this convention, as it matches the Nasm syntax for "local labels" (okay, pseudo-local labels). If *that's* the problem, it might be more work to undo. Name collisions, y'know. Your solution to it ought to be to give everything "full talking names". Might be an impractical pile of work, though. RosAsm's (non)treatment of underscores may be a problem, too... (you thought these changes from Nasm were an improvement... live with it...) I would have expected that a bigger "problem" to you would have been using gcc to link 'em. I have *no* idea what that "'pkg-config...'" bit on the command line does. Calling just "printf" (libc) or Xlib, I can get an executable out of ld, without going through gcc and linking in the "startup code". I don't know how "robust" that is, but it "seems to work". There may be a way to do it for gtk, too, but I haven't found it. Herbert has shown me a "better way" to get an ELF executable directly out of Nasm than has previously been done (AFAIK). Works if we *don't* call any dynamically linked libraries. It's apparently possible to do *that*, too. I haven't looked into it. http://www.mpeforth.com/arena/cwgtLinux.txt Don't be put off by the fact that it's "about" writing a Forth compiler. It shows how to get dynamically linked code out of Nasm without a linker. You may need to get "grounded" in the ELF format to understand it... as I said, I haven't tried it. It suggests that code that calls shared libraries *can* be produced by RosAsm/Wine... maybe... I hope you stick with Linux long enough to do something with it, but if it continues to be painful (I don't know if "three weeks" is too long or too short), don't keep beating your head against it. Life's too short! Best, Frank
From: Evenbit on 5 Sep 2007 00:11 On Sep 3, 11:16 pm, "Jim Carlock" <anonym...(a)127.0.0.1> wrote: > > : That's a pretty popular distro (FEDORA 6)... > > It's got a lot to it. It comes with what appears to be OpenOffice, > and three different GUI environments (KDE, X-Windows, and I forgot > the other name which I think is one of the defaults). It also, comes > with DNS server, FTP server (YUCK! I dislike FTP and refuse to install > that), HTTP web server (I guess is Apache), as well as development > environments. I can see why Charles likes it. There's plenty more > to it. Some of the things I have no clue as of yet what they are... > Eclipse, et al. It's got alot to it. Chuck can help out here, as I > still haven't got it installed. I've got a few other hard disks > lying around, so I can take the poopy drive out if FDISK doesn't > give up on it. > It would be fantastic to have a "Developer's Distro" containing all the tools and "-dev" packages (libraries and header files) right there on the CD/DVD. Does anyone know of such a distro or one that comes close? Nathan.
From: Charles Crayne on 5 Sep 2007 00:42 On Tue, 04 Sep 2007 21:11:38 -0700 Evenbit <nbaker2328(a)charter.net> wrote: > It would be fantastic to have a "Developer's Distro" containing all > the tools and "-dev" packages (libraries and header files) right there > on the CD/DVD. Does anyone know of such a distro or one that comes > close? Fedora does a pretty good job of this. Checking the F7 DVD, I find 1628 packages, of which 170 are -devel packages. Not all of these are installed by default, but they are there on the distribution media. If there are some specific packages which you are concerned about, I would be happy to check them for you. -- Chuck
From: Evenbit on 5 Sep 2007 03:01 On Sep 5, 12:42 am, Charles Crayne <ccra...(a)crayne.org> wrote: > On Tue, 04 Sep 2007 21:11:38 -0700 > > Evenbit <nbaker2...(a)charter.net> wrote: > > It would be fantastic to have a "Developer's Distro" containing all > > the tools and "-dev" packages (libraries and header files) right there > > on the CD/DVD. Does anyone know of such a distro or one that comes > > close? > > Fedora does a pretty good job of this. Checking the F7 DVD, I find 1628 > packages, of which 170 are -devel packages. Not all of these are > installed by default, but they are there on the distribution media. If > there are some specific packages which you are concerned about, I would > be happy to check them for you. > Thank you. I am looking at a Ubuntu/Debian package they call "libgtk2.0-dev" with a dozen or more dependencies that together become a 16MB download. I could get someone to d/l it for me, but if I'm gonna go to that much trouble, I'm thinking that I might as well get a spanking-new distro in the same basket. Nathan.
From: Betov on 5 Sep 2007 04:04
"sevag.krikorian" <sevag.krikorian(a)gmail.com> �crivait news:1188946641.300061.217220(a)r34g2000hsd.googlegroups.com: > Module names don't have '.' , they have '_' which may cause a problem > anyway if Rosasm ignores these. You are very talented at making errors on errors, sevag: 1) jmp 'libgtk-win32-2.0-0.gtk_init' where 'libgtk-win32-2.0-0' is the module name, in Frank Sources. 2) RosAsm doesn't touch anything in between quotes. So, "_" cannot be any problem. Betov. < http://rosasm.org > |