flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > C++ or ASM

Goto page Previous  1, 2, 3, 4, 5
Author
Thread Post new topic Reply to topic
rwalt



Joined: 27 Apr 2004
Posts: 19
Location: Illinois, USA
rwalt 23 Aug 2006, 16:48
Yeah, I just read on Wikipedia that Mac OS uses an older file format for object files, just as you have pointed out.

I also found out that the Core Duo processor does not have EM64T, the Core 2 Duo will have this technology.

So what I really have in front of me is a 32 bit machine. So that would mean that the core of 10.4 is not 64. This will all occur in Leopard I suppose.

_________________
DarkStar
Post 23 Aug 2006, 16:48
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 23 Aug 2006, 17:16
Quote:

the Core 2 Duo will have this technology.

Them are available now. Even in Argentina I can buy them.
Post 23 Aug 2006, 17:16
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 24 Aug 2006, 11:36
locodelassembly wrote:
Quote:

the Core 2 Duo will have this technology.

Them are available now. Even in Argentina I can buy them.

And they're sweeeeeeeeeeeeeet - I'd love to have an E6600, seems like VERY good bang for the buck.

_________________
Image - carpe noctem
Post 24 Aug 2006, 11:36
View user's profile Send private message Visit poster's website Reply with quote
FrozenKnight



Joined: 24 Jun 2005
Posts: 128
FrozenKnight 13 Sep 2006, 10:47
i was once able to create a 10k Visual C++ executable. but it used somewhere around 100mb of DLL's just to run.
Post 13 Sep 2006, 10:47
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 13 Sep 2006, 11:18
friend did 8-9 KB Delphi console executable
Post 13 Sep 2006, 11:18
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 13 Sep 2006, 11:23
I've done 4kb fully working C++ program using classes - http://f0dder.reteam.org/dl/bin2o_04.zip
Post 13 Sep 2006, 11:23
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 13 Sep 2006, 11:30
oh, of course, and 4KB doing-nothing ARM DLL...
Post 13 Sep 2006, 11:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost 14 Sep 2006, 19:12
I can get a C programme down to 1.5kb with PellesC Very Happy.

_________________
redghost.ca
Post 14 Sep 2006, 19:12
View user's profile Send private message AIM Address MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 14 Sep 2006, 21:58
It's easy enough to get a hello,world down to that, and probably even smaller as well - my program actually does something Wink
Post 14 Sep 2006, 21:58
View user's profile Send private message Visit poster's website Reply with quote
Filter



Joined: 08 Oct 2006
Posts: 67
Filter 22 Nov 2006, 02:09
Well the question is how big are these exe files when compiled to use no runtime?

Personally I'm not too worried about size but the ability to produce a faster program that I have full control over is what drives me to assembler and FASM.

I think everybody should learn C++. It helps get a few basics. I started with basic (basica, Applesoft Basic) then went to C++ because of the power vs basic. Learning C++ has allowed me to pick up just about any language and be able to understand and use it. I wouldn't trade my C++ skills for the world but I don't use it on a regular basis. I find the language that will accomplish what I need and I use that.

I would recommend learning C++ starting out.
Post 22 Nov 2006, 02:09
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 31 Dec 2006, 09:28
Hey Barf !

Do not get misguided by what others say.

JUST GO FOR C++

and you will have best of the three worlds ( viz: Earth, Heaven and Hell ).
Post 31 Dec 2006, 09:28
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 02 Jan 2007, 01:00
Here's the <sarcasm> wonderful </sarcasm> advice I always hear whenever I (insanely) decide to drop onto IRC ##c or #c++ (FreeNode):


  • use ... library
  • don't do this or that, it's bad style
  • get a real compiler/OS/etc.
  • RTFM
  • Google it
  • buy ... book


Sounds great, no? Razz
Post 02 Jan 2007, 01:00
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 02 Jan 2007, 01:49
Quote:
Sounds great, no?
but most of time it might be best advice (maybe except third and last one)
Post 02 Jan 2007, 01:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 02 Jan 2007, 02:41
Bad style.. i get points taken off for my "bad style."
Post 02 Jan 2007, 02:41
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 02 Jan 2007, 03:05
rugxulo wrote:


  • use ... library (BAD)


(GOOD) Mark Adler wrote:

gijung wrote:

i have found zlib but i can't find gzip library.
the gzip is only implemented for the file.
can i find the gzip library for memory buffer and some example?


zlib does in fact support the gzip format in memory with the deflate
and inflate functions (versions 1.2.x). Look in zlib.h at the
deflateInit2() and inflateInit2() functions.

http://www.zlib.net



rugxulo wrote:


  • don't do this or that, it's bad style



Style will never be agreed upon. Better to learn what works/doesn't than to learn to make broken code look pretty/be "easier" to read, etc.

rugxulo wrote:


  • get a real compiler/OS/etc.



I'm not sure why such-minded people even bother to be on an IRC network in the first place. Seriously, why do they??

rugxulo wrote:


  • RTFM (BAD)



(GOOD) See http://www.pkware.com/business_and_developers/developer/popups/appnote.txt , section F under General Format of .ZIP file. Or view http://www.7-zip.org 's source (specifically ZipHeader.cc or whatever).

rugxulo wrote:


  • Google it (BAD)



(GOOD) See http://www.maximumcompression.com under Compression Programs (e.g., PAQ8?, PPMd).

rugxulo wrote:


  • buy ... C++ book (BAD)



No one book is going to have everything, and I personally think it's a waste of money to buy too many (unhelpful) books. Better to say:
(GOOD) wrote:

Download Bruce Eckel's free Thinking in C++ book (HTML + src download) or view cplusplus.com's tutorial here. Don't forget Stroustrup's page, also. You may also want to check out news://comp.lang.c++ or news://alt.comp.lang.learn.c-c++ (also available at http://groups.google.com). There are also some good book reviews at http://www.accu.org . Or search eBay. Or you could always rent a few related books from your local library (cheap but effective). Smile


P.S. I normally get all irritated when people expect everybody to follow a billion rules or get flamed to death (e.g., bug reporting). This is a bit of a hassle, and takes WAY more effort to accomplish anything. So, I must disclaim that strict attitude. I'm only saying that "Sometimes, people can be more helpful than they are."


Last edited by rugxulo on 06 Jan 2007, 04:45; edited 1 time in total
Post 02 Jan 2007, 03:05
View user's profile Send private message Visit poster's website Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 02 Jan 2007, 04:10
I have come across a book for C++ that taught me everything i know about C++. I got it with my (ashamed to say) pirated version of visual studio 6.0 Aside from not covering the standard library, it has everything that i can think of about C++ covered.
Post 02 Jan 2007, 04:10
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 02 Jan 2007, 08:20
Quote:

use ... library

Makes sense if there's a decent free implementation around, especially if what you're trying to duplicate is complex and you'd end up writing inferior code. Of course there can be a valuable learning experience in reinventing the wheel, but you should at least know you're doing that, then.

Quote:

don't do this or that, it's bad style

Often, that's justified. If you're writing code that's compiler/platform specific when it doesn't need ot be, etc. There's times when language nazis get all pedantic, dogmatic and silly, but imho a comment like this is often justified, from the code I see people post.

Quote:

get a real compiler/OS/etc.

This depends on the situation.

If you're trying to learn modern C++, you simply don't use old Borland, MS, Watcom, as they don't have full language support, can generate bad code, etc. VC6, for instance, is notoriously known for very broken template support.

On the other hand, you might be stuck with an old platform for various purposes, and need to learn workarounds for issues rather than being told to upgrade. Hopefully this is very rarely the case, though.

Quote:

RTFM

Bad by itself, but if some hint as to which manual it is, and where in the manual to look, decent enough. Some people are just too lazy and expect to be spoon-fed answers that are explained somewhere already. When that is said, though, it must be added that not all topics are equally easy to find, so "look at The Standard, section 3.4.5" could be a nice answer.

Quote:

Google it

Bad in itself, unless a really obvious query would return good results in the first page (that is often the case though, some people are friggin' lazy). A better alternative to this answer is to help people improve their google skills by providing a decent query. "Give a man a fish" et cetera.

Quote:

buy ... book

If you want to get serious with a language, you often need to at least read a few books, and it's often a good idea to own at least a copy of the language standard so you can look things up (electronic version helps, searching is so much easier).

But you're right that there's a tendency, especially for C++, for some people to say "buy this and that and these and those books", which is way overkill. Still, every aspiring C++ programmer ought to read K&R: The C programming language, Stroustrup: The C++ Programming Language, Meyers: Effective C++. If you're going to actually do C++/STL programming, Josuttis: The C++ Standard Library is a good reference as well.

That's already a bunch of books Smile, but it does have a point - rather than relying on (possible unreliable) people on IRC, flawed code found through google etc., having some well-written material from people that use & know the language well can be really beneficial.

Oh, and stay away from all "Learn X in Y timeunits" - they mostly all suck, and some are even flat-out wrong and might damage your mind. A bad programming book is worse than no programming book Smile
Post 02 Jan 2007, 08:20
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 02 Jan 2007, 09:30
Quote:
Oh, and stay away from all "Learn X in Y timeunits" - they mostly all suck, and some are even flat-out wrong and might damage your mind. A bad programming book is worse than no programming book
http://norvig.com/21-days.html
Post 02 Jan 2007, 09:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 02 Jan 2007, 12:19
Quote:
Bad in itself, unless a really obvious query would return good results in the first page (that is often the case though, some people are friggin' lazy). A better alternative to this answer is to help people improve their google skills by providing a decent query. "Give a man a fish" et cetera.


Especially one that you have checked a few links to.
Post 02 Jan 2007, 12:19
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.