[haiku-bugs] Re: [Haiku] #6452: [DriveSetup] Currupts MBR on some disks over 250GB.

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Mon, 27 Sep 2010 19:51:14 -0000

#6452: [DriveSetup] Currupts MBR on some disks over 250GB.
--------------------------------------+-------------------------------------
  Reporter:  davidsaunders            |         Owner:  stippi   
      Type:  bug                      |        Status:  new      
  Priority:  normal                   |     Milestone:  R1       
 Component:  Applications/DriveSetup  |       Version:  R1/alpha2
Resolution:                           |      Keywords:  MBR SATA 
Blocked By:                           |   Has a Patch:  0        
  Platform:  x86                      |      Blocking:           
--------------------------------------+-------------------------------------

Comment (by bonefish):

 Replying to [comment:10 davidsaunders]:
 > Ok localization support takes a bit more (less than 2k per language).
 Though let us be realistic there needs to be two menus, two buttons, one
 four section scrollable list-field, two scroll widgets, and one tittled
 window, with no more than 48 strings, per language, each under 31
 characters long (many under 8 characters long) many of witch do not need
 to be modified for localization.

 *sigh* Whatever your frame of reference is, it's obviously not C++ or the
 Haiku API. E.g BView and its super classes together have more than 70
 virtual methods, so just ''declaring'' a BView subclass costs almost 300
 bytes (more for BView subclasses) for the vtable. DriveSetup's `.dynsym`
 and `.dynstr` sections alone weigh more than 60 KiB. If you need a
 reference how much machine instructions are generated for C++ code, just
 use objdump. E.g. DriveSetup's three-line `main()` function is translated
 to 98 bytes of machine instructions (gcc 4 build).

 For sake of correctness:
  - Haiku uses UTF-8 and almost all characters of strings in the DriveSetup
 code are single-byte.
  - Additional languages don't cause a greater code size -- the language
 catalogs are external files.

 Anyway, this is a ticket about something else entirely. If you feel you
 can program a great DriveSetup in 4 KiB, please do. Post an announcement
 on the development mailing list when you're done. Thanks!

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6452#comment:13>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: