Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8d1ac022
Kaydet (Commit)
8d1ac022
authored
May 29, 1997
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented (slightly) the USE_CACHE_ALIGNED define, for the standalone
distribution
üst
e66b8c85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
README
Mac/mwerks/malloc/README
+6
-2
malloc.c
Mac/mwerks/malloc/malloc.c
+7
-0
No files found.
Mac/mwerks/malloc/README
Dosyayı görüntüle @
8d1ac022
...
@@ -6,7 +6,7 @@ implemented for use with the MetroWerks CodeWarrior compiler on the
...
@@ -6,7 +6,7 @@ implemented for use with the MetroWerks CodeWarrior compiler on the
PowerPC Mac, but may also be useful (in a more limited way) for use
PowerPC Mac, but may also be useful (in a more limited way) for use
with MW 68K or Think compilers.
with MW 68K or Think compilers.
This is distribution 1.
0, dated April 19, 1995
.
This is distribution 1.
1, dated May 28, 1997
.
How does it work?
How does it work?
-----------------
-----------------
...
@@ -52,9 +52,13 @@ One reason for not using it:
...
@@ -52,9 +52,13 @@ One reason for not using it:
How do I use it?
How do I use it?
----------------
----------------
You may want to look at the source: most debugging options are off by
default, and so is returning cache-aligned blocks. Near the top of
malloc.c you will see a couple of defines you can turn on.
For MW PPC: simply add the sources to your project. Due to the way the
For MW PPC: simply add the sources to your project. Due to the way the
linker works all mallocs will use the new malloc, even the malloc
linker works all mallocs will use the new malloc, even the malloc
calls that come from the libraries
(if I'm informaed correctly)
.
calls that come from the libraries.
For MW 68K: ditto, only supposedly the library malloc calls will still
For MW 68K: ditto, only supposedly the library malloc calls will still
use the original malloc. The two packages don't bite each other,
use the original malloc. The two packages don't bite each other,
...
...
Mac/mwerks/malloc/malloc.c
Dosyayı görüntüle @
8d1ac022
...
@@ -61,6 +61,13 @@ static char *rcsid = "$Id$";
...
@@ -61,6 +61,13 @@ static char *rcsid = "$Id$";
#define VCHECK
#define VCHECK
#endif
/* USE_MALLOC_DEBUG */
#endif
/* USE_MALLOC_DEBUG */
/*
* Set the next define if you want to return memory that is aligned to 32-byte
* boundaries. This allows 604 (and, to a lesser extent, any PPC) programs to
* make better use of the L1 cache.
*/
/* #define USE_CACHE_ALIGNED 8 /* The alignment (in 4-byte words) */
typedef
unsigned
char
u_char
;
typedef
unsigned
char
u_char
;
typedef
unsigned
long
u_long
;
typedef
unsigned
long
u_long
;
typedef
unsigned
int
u_int
;
typedef
unsigned
int
u_int
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment